Post by navin
I am in the process of developing an application whose UI utility i
want to display it in a 640 * 480 pixels LCD monitor. Here, the
application runs on WindowsXP OS. Also I want to execute the same
application simultaneously in a PDA display whose size is 320 * 240
pixels. Here in PDA, the application runs on WindowsMobile OS.
Please advise me on how to make the application automatically resized
when opened on different display devices say in a LCD (640 * 480) and
in a PDA (320 * 240).
As the application starts, query the dimensions of the screen. And
then resize and reposition all the controls in your window(s). For
straight Win32, some of the relevant functions are GetSystemMetrics,
SystemParametersInfo, SHInitDialog, SHFullScreen, MoveWindow, and
SetWindowPos. For more, see my 4 December 2008 contribution to a
thread called "Maximize a window" in
microsoft.public.windowsce.embedded.vc. I use the same code for "big"
Windows and Windows Mobile.
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, MVP
20 Park Plaza, Suite 400
Boston, MA 02116