Screen resolution problem
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: Screen resolution problem

  1. #1
    Join Date
    Apr 2013

    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

  2. #2
    Join Date
    Aug 2000
    New York, NY, USA

    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] -
    Convenience and productivity tools for Microsoft Visual Studio:
    FeinWindows - replacement windows manager for Visual Studio, and more...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center