API for screen resolution
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: API for screen resolution

  1. #1
    Join Date
    Mar 2010
    Location
    Melbourne Australia
    Posts
    454

    API for screen resolution

    Hello All , is there an API to get screen resolution , and notification or call back function when screen resolution changes

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,062

    Re: API for screen resolution

    Use WM_DISPLAYCHANGE to get notified when the resolution changes. The lParam contains the new resolution.

    You can use EnumDisplaySettings to get the resolutions of all connected monitors.

  3. #3
    Join Date
    Jul 2009
    Location
    India
    Posts
    835

    Re: API for screen resolution

    Use GetSystemMetric with SM_CXSCREEN and SM_CYSCREEN for getting reso and rest of thngs as suggested by Marc G.

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