Solved

PocketPC Dialog size

Posted on 2009-05-14
5
389 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

With Windows Embedded Handheld, called Windows Mobile, Microsoft re-designed the user interface. The Start Icon moved down to the bottom, inside the menu bar area.   If you need to hide the Start Icon and/or the SIP (soft input panel, softwar…
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now