Solved

PocketPC Dialog size

Posted on 2009-05-14
5
414 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

691 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