title: windows 10 screen coordinates are offset by 7
body: <p>I'm coding in c++ on windows 10 - straight win32 API.</p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>rect.left for a nonmaximized window can go from -7 to 1912.</p>
  
  <p>so things are slid by 7 pixels ?  WTF microsoft ??</p>
  
  <p>How am I supposed to come up with the rec.right=1913 value to position my window aligned to right side of screen without that dang gap ?</p>
  
  <p>But rect.right of 1920 leaves a gap.  So rect.right of 1912 would leave MORE of a gap...</p>
  
  <p>And I need a solution that'll work back to Vista.
  Pre win10, that rect.right should be 1920 like ya expect.</p>
  
  <p>Whaaaaat is going on here?  I'm about to start throwing knives around !!</p>
  
  <p>Code wise, this is just what GetWindowRect is reporting...
  (excuse my weird debugging function)</p>
  
  <pre><code>::GetWindowRect (_wndo, r);
  
  DBG("ExtRc l=`d r=`d t=`d b=`d w=`d h=`d",
  r-&gt;left, r-&gt;right, r-&gt;top, r-&gt;bottom, r-&gt;right-r-&gt;left, r-&gt;bottom-r-&gt;top);
  </code></pre>