How do I get the dimensions (RECT) of all the screens in win32 API?

前端 未结 3 580
北海茫月
北海茫月 2021-01-13 06:06

I\'m writing an application for the testing team. What this application does is it lets you take a screenshot of any part of the screen (and then it uploads it to testing te

3条回答
  •  鱼传尺愫
    2021-01-13 06:25

    Refer to MSDN for detail about working with multiple monitors:

    Multiple Display Monitors

    Virtual Screen

    Multiple Monitor System Metrics

    You can use GetSystemMetrics() with the SM_XVIRTUALSCREEN, SM_YVIRTUALSCREEN, SM_CXVIRTUALSCREEN, and SM_CYVIRTUALSCREEN metrics to retrieve the rectangle of the entire virtual screen that contains all of the physical screens.

提交回复
热议问题