Wince4.2 core rotation

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

I am using WinCE4.2 core on an embedded arm board which is bought
online. I have tried 2 methods to rotate the screen:

1. Try writing eVC program with the code here:

DEVMODE DeviceMode;
memset(&DeviceMode, NULL, sizeof(DeviceMode));
DeviceMode.dmSize=sizeof(DeviceMode);
DeviceMode.dmFields = DM_DISPLAYORIENTATION;
DeviceMode.dmDisplayOrientation = DMDO_90;

However, the WinCE screen has not rotated.

2. Try change code in the BSP file

$(_WINCEROOT)\PLATFORM\smdk2440\drivers\display\S3C2440lcd
\s3c2440disp.cpp

Original code is

#ifdef ROTATE
m_iRotate = 0;
SetRotateParms();
#endif //ROTATE

changing to

//#define ROTATE

#ifdef ROTATE
m_iRotate = DMDO_90;
SetRotateParms();
#endif //ROTATE

But the compilation generates many errors.

Could anyone help me to explain why this happens or how can I do the
rotation?

Thanks!

.