--- a/bluetoothengine/bthid/mouse/PaintCursor/src/paintcursorappview.cpp Tue Feb 02 00:20:42 2010 +0200
+++ b/bluetoothengine/bthid/mouse/PaintCursor/src/paintcursorappview.cpp Fri Apr 16 15:08:36 2010 +0300
@@ -15,7 +15,7 @@
*
*/
-
+#include <coecntrl.h>
#include "paintcursorappview.h"
#include "pointmsgqueue.h"
#include "debug.h"
@@ -155,3 +155,25 @@
iMouseInitialized = ETrue;
}
+void CPaintCursorAppView::HandleResourceChange( TInt aType )
+ {
+ CCoeControl::HandleResourceChange( aType );
+ if ( aType == KEikDynamicLayoutVariantSwitch )
+ {
+ TRect mainPaneRect;
+ AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, mainPaneRect );
+ SetRect( mainPaneRect );
+ DrawNow();
+ if (iMouseInitialized)
+ {
+ iClientCommander.ImageCommand( KRedrawBTCursorAnim );
+ }
+ }
+ }
+
+void CPaintCursorAppView::HandleControlEventL(
+ CCoeControl* /*aControl*/, TCoeEvent /*aEventType*/ )
+ {
+ }
+
+