windows 10 screen coordinates are offset by 7

前端 未结 2 1076
天涯浪人
天涯浪人 2020-12-09 23:35

I\'m coding in c++ on windows 10 - straight win32 API.

I wanted to make a window show up in the top right of the screen. As I was doing this, I noticed that screen c

2条回答
  •  感情败类
    2020-12-10 00:22

    This is because of the width of the window border and other factors, which vary depending on OS version, user preference, and DPI settings. See the GetSystemMetrics function.

提交回复
热议问题