Solved

PocketPC Dialog size

Posted on 2009-05-14
5
410 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ActionBar problem 7 162
Outlook on Android with no lock screen 2 227
Connect Samsung S5 to PC via USB 13 81
VMWare Workspace ONE 10 100
Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
A short article about problems I had with the new location API and permissions in Marshmallow
Suggested Courses

739 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