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

Thread: Screen resolution problem

Hybrid View

  1. #1
    Join Date
    Apr 2013
    Posts
    77

    Screen resolution problem

    Hi,
    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
    Location
    New York, NY, USA
    Posts
    5,553

    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:
    FeinViewer - an integrated GDI objects viewer for Visual C++ Debugger, 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 CodeGuru survey question.


Featured


HTML5 Development Center