Solved

PocketPC Dialog size

Posted on 2009-05-14
5
398 Views
Last Modified: 2013-12-27
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)
0
Comment
Question by:Wanting2LearnMan
5 Comments
 

Author Comment

by:Wanting2LearnMan
ID: 24383444
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
 
LVL 48

Assisted Solution

by:Mikal613
Mikal613 earned 200 total points
ID: 24383579
I think you will have to determine your size after you get the screen resolution. There are multiple screen sizes. 320X240 240X320. 240X240
0
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 150 total points
ID: 24383652
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
 
LVL 48

Assisted Solution

by:Mikal613
Mikal613 earned 200 total points
ID: 24383974
0
 
LVL 33

Assisted Solution

by:pgnatyuk
pgnatyuk earned 150 total points
ID: 24393122
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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the most popular question in our Windows Mobile Programming zone is about the backlight - we all want to keep it on when our application is running. Few years ago the function SystemIdleTimerReset() did this job. On our side we had to detec…
As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question