title: Save and restore Aero Snap position on Windows 7
body: <p>Let's say I have a window and I want to save its position when the window closes and restore it when the window is opened again. The typical way to do this is to call GetWindowPlacement / SetWindowPlacement. This takes care of remember the position and the maximized / minimized state.</p>
  
  <p>On Windows 7, you can dock a window to the side of the screen using the <a href="http://en.wikipedia.org/wiki/Windows_Aero" rel="nofollow noreferrer">"Aero Snap"</a> feature. My question is how do you save and restore windows that have been "Snapped" so that you can restore the "Snap" state. GetWindowPlacement / SetWindowPlacement does not solve this problem (to my knowledge) and I haven't seen any "Snap" API's in Windows 7.</p>
  
  <p>There is a similar question on here 
  <a href="https://stackoverflow.com/questions/1999035/how-to-detect-window-was-resized-by-windows7">How to detect window was resized by Windows7</a> but in this case it seems that the OP just wanted the restore position, not the "Snap" state.</p>