August 26th, 2013, 01:24 AM
Screen resolution problem
In my win32 application,i am drawing some boxes on the screen,dimension of this rectangular boxes iam deciding based on the value getting through GetClientRect().But if am running application on different pC(Different monitor size)my boxes with different size how to make it general for all PC
August 27th, 2013, 02:44 PM
Re: Screen resolution problem
Check out SetMapMode function.
The default mode is MM_TEXT. If you need your boxes to have the same size in any resolution, use MM_HIENGLISH or MM_HIMETRIC.
Vlad - MS MVP
[2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
- an integrated GDI objects viewer for Visual C++ Debugger, and more...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.