title: How to save and restore window position in mfc
body: <p>I have a big program which loads and saves many projects, each project may have its own window layout(There are many controls and components on it).</p>
  
  <ul>
  <li>Each time when a project is closed, the layout is saved,</li>
  <li>The program restores the layout of the project next time it's loaded.</li>
  </ul>
  
  <p>Currently, My solution is :  </p>
  
  <ul>
  <li>When project is closed, I export all related reigistry in <code>HKEY_CURRENT_USER\Software\myprogram</code> to a local reg file in the project directory</li>
  <li>When project is loaded, the reg file is registered.  </li>
  </ul>
  
  <p>In this way I implement the function. However I think there must be much better solution, Can anyone give some advice?</p>