Robert
Tue Jan 25 16:53:34 CST 2005
By default, applications compiled using the Pocket PC 2003 SDK or earlier
are run in a legacy mode where the OS pretends to be 320x240 and does
automatic pixel-doubling to properly display on 640x480.
To get out of this legacy mode, your application needs to be marked as being
resolution aware. There are whitepapers in the 2003 Second Edition
Developer Resources kit explain how to do this for both native and managed
code.
--
Robert Levy
Program Manager
Mobile Devices Product Group
http://blogs.msdn.com/windowsmobile
This posting is provided "AS IS" with no warranties, and confers no
rights.
PdaTechUser wrote:
> Hi Everybody!
>
> Cegetdev.exe sample application (included in EVC4.0 samples) displays
> these values on a HP iPAQ hx4700 (and on Pocket LOOX 720 also):
>
> HORZRES=240
> VERTRES=320
>
> But, it is not the truth because these devices have 640x480 screen
> resolution.
>
> Cegetdev.exe uses GetDeviceCaps function and this function returns the
> wrong value.
>
> How can I get correct screen resolution? I don't know other way than
> GetDeviceCaps func.
>
> Any idea?