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

Hybrid View

  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,150

    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.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  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
  •  





Click Here to Expand Forum to Full Width

Featured