Click here to Skip to main content
15,881,804 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I just begin to work on windows mobile application. after I nearly done this work, I tested my program on a phone with windows mobile 6.5. problem is the background image of dialog did not cover the whole as it did when I run the program on computer.

I have to make sure that background image of dialog will display correctly on various size of mobile screen with various resolution . how can I achieve that ?
should I prepare different image for each mobile screen? what about resolution ? what factors should I consider and how ?

I am using C++ with visual studio 2008 .
the well tested idea and example would be best..

anyone tell me how to do it?
Posted

Hi Alijman,

Your answer is in MSDN: Developing DPI Aware Applications[^].

cheers,
AR
 
Share this answer
 
The problem is probably that the actual size (in pixel) of the dialog depends on the device and on the fonts configured for it.

You sould not diplay a "fixed size" elements on an unknown device. You should insted get rid of the effective size of your dialog, and scale the bitmap acordingly.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900