title: Win32 detect if window is maximized/docked to half screen (Win-key + Left/Right)
body: <p>I have a classic Win32-API (C++) application and need to detect if the window is docked to the left/right half of the screen.</p>
  
  <p>Background of the question is that the window only sizes in grid steps, let's say 32 pixel.  In full screen the program detects that state, allow size to match the full screen and pad the excess space.  With Windows 8 and later I would like to do the same instead of currently leaving borders (because the size snaps to a multiple of 32 pixel).</p>