windows 10 screen coordinates are offset by 7
问题 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 coordinates for a maximized window are left=-8, top=-8, right=1936, bottom=1088. Also, when I position a window so right=1920 and top=0, there's about an 8 pixel gap on the right. I tried moving the window around to see what screen coordinates I got. rect.left for a nonmaximized window can go from -7 to 1912. so things are slid by 7