title: How to make an MDI child window stay on top of its siblings?
body: <p>This question is related to <a href="https://stackoverflow.com/questions/591508/user-interface-best-way-to-toggle-mdi-frames-on-top-status">my previous one.</a></p>
  
  <p>I have an MFC (VC6) MDI Application which has several MDI child windows acting as different views for one document.</p>
  
  <p>Is it possible to set one of those frames to stay on top of the others?<br>
  I have tried to call</p>
  
  <pre><code>SetWindowPos(
     &amp;GetParentFrame()-&gt;wndTopMost,
     0, 0, 0, 0,
     SWP_NOMOVE | SWP_NOSIZE);
  </code></pre>
  
  <p>and </p>
  
  <pre><code>ModifyStyleEx(0, WS_EX_TOPMOST);
  </code></pre>
  
  <p>from the CMDIChildWnd but neither appears to work.</p>