PocketPC Dialog size

When I create an MFC dialog for a windown mobile (PocketPC) device, what is the correct size of the dialog? to make it full screen (For normal sized PDA)
Wanting2LearnManAsked:
Who is Participating?
 
alexey_gusevConnect With a Mentor Commented:
135x180 - does it mean dialog's size in Resource Editor? because obviously there is no difference oir the actual exe whether you use eVC4 or VS2005.

you might use something like that to automate the resizing (assuming you call it in OnInitDialog() ):


int cx = GetSystemMetrics(SM_CXSCREEN);
int cy = GetSystemMetrics(SM_CYSCREEN);
int cyCaption = GetSystemMetrics(SM_CYCAPTION);
SetWindowPos(&wndTop, 0, 0, cx, cy - 2 * cyCaption, SWP_NOMOVE|SWP_NOZORDER);

Open in new window

0
 
Wanting2LearnManAuthor Commented:
WhewnI used to work with eVC++4 I stretched all dialogs so they were 135 x 180 but now I am using VS2005 and this size is much smaller than the PDA screen.
0
 
Mikal613Connect With a Mentor Commented:
I think you will have to determine your size after you get the screen resolution. There are multiple screen sizes. 320X240 240X320. 240X240
0
 
pgnatyukConnect With a Mentor Commented:
The common way is to use SHInitDialog.
Please read that: http://support.microsoft.com/kb/266244.
It shows fullscreen and non-fullscreen, dialog and frame.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.