Log in

View Full Version : programming for landscape option


Kowalski
04-19-2004, 12:28 PM
the first thing i like about programming for pocket pc was that the screen resolution would never change. so i dont have to use resizable classes and put the controls wherever i wanted.
but now we have to use the resizable controls and classes for the pocket pc too and i find this very frustrating!
i mean yes using the landscape option will be very handy for a user but for a programmer this means more sleepless nights in front of the debugger and more time to learn the new resizable classes!
the desktop part of mfc doesnts have these classes but i hope that microsoft will put them on the new sdk

Zidane
04-20-2004, 03:37 PM
From what I've observed with the emulator, you really only need to handle the WM_SIZE message (just like on the desktop). Plus, if you use things like GetDevCaps to get the current resolution, instead of hardcoding, then you'd be better off anyway because you would have support for third party landscape utilities on the market already.