Home > Back-end >  GetSystemMetrics access to the virtual screen size is not right
GetSystemMetrics access to the virtual screen size is not right

Time:04-09

Use GetSystemMetrics to obtain the size of the screen to the screen capture
Cx=int GetSystemMetrics (SM_CXVIRTUALSCREEN);
Int cy=GetSystemMetrics (SM_CYVIRTUALSCREEN);
Screen without zooming result as normal, if the screen has a zoom, then zooming screen size is not normal,
And PrintScreen key solution out of the screen is not the same, always lack of something,
Check the PrintScreen key, the size of screen out scaling is also in accordance with the resolution of the intercept to the size of the screen,
The GetSystemMetrics is access to the size of the screen zoom zoom,
How to get the real full screen size?

CodePudding user response:

Reference: https://blog.csdn.net/problc/article/details/7063324? Ops_request_misc=& amp; Request_id=& amp; Biz_id=102 & amp; Utm_term=BC EF GetSystemMetrics % % % 88 sm_yvirtualsc & amp; Utm_medium=distribute. Pc_search_result. None - task - blog - 2 ~ ~ sobaiduweb ~ all default - 7-7063324. First_rank_v2_pc_rank_v29
  • Related