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?

Re: Cegetdev displays 320x240 on a VGA device by Robert

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?



Re: Cegetdev displays 320x240 on a VGA device by Riki

Riki
Wed Jan 26 02:58:11 CST 2005

how about GetSystemMetrics (CE .NET 4.2) ?

int iWidthScreen = ::GetSystemMetrics(SM_CXSCREEN);
int iHeightScreen = ::GetSystemMetrics(SM_CYSCREEN);

regards,
Riki Risnandar

"PdaTechUser" <istvan.malnas@pdatech.hu> wrote in message
news:OoERuxwAFHA.208@TK2MSFTNGP12.phx.gbl...
> 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?



Re: Cegetdev displays 320x240 on a VGA device by Robert

Robert
Wed Jan 26 18:58:34 CST 2005

All APIs will return 320x240 unless you mark your application as being
resolution aware. See my previous response in this thread.

--
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.

Riki Risnandar wrote:
> how about GetSystemMetrics (CE .NET 4.2) ?
>
> int iWidthScreen = ::GetSystemMetrics(SM_CXSCREEN);
> int iHeightScreen = ::GetSystemMetrics(SM_CYSCREEN);
>
> regards,
> Riki Risnandar
>
> "PdaTechUser" <istvan.malnas@pdatech.hu> wrote in message
> news:OoERuxwAFHA.208@TK2MSFTNGP12.phx.gbl...
>> 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?



Re: Cegetdev displays 320x240 on a VGA device by hel

hel
Thu Jan 27 05:29:39 CST 2005

RL- [Wed, 26 Jan 2005 16:58:34 -0800]:
>All APIs will return 320x240 unless you mark your application as being

Not quite all:

ExtEscape(dcH,GETRAWFRAMEBUFFER,0,0,sizeof(RAWFRAMEBUFFERINFO),(CHAR*)&rfbi);

--
40th Floor - Software @ http://40th.com/
iPlay : the ultimate audio player for PPCs
mp3,mp4,m4a,aac,ogg,flac,wav,play & record
parametric eq, xfeed, reverb: all on a ppc