title: MFC: Showing / Hiding Splitter Panes
body: <p>In my application I have a number of panes from m_wndspliter classes. What I want to do is at run time show and hide one of these panes. Whilst with the following code I can show and hide the view associated with the pane, I can't temporarily remove the pane itself. </p>
  
  <pre><code>CWnd * pCurView = m_wndSplitter2.GetPane(2, 0);
  if( !pCurView == NULL )
  {
      if( fShow )
      {
          pCurView-&gt;ShowWindow(SW_SHOW);
          RecalcLayout();
      }
      else
      {
          pCurView-&gt;ShowWindow(SW_HIDE);
          RecalcLayout();
      }
  }
  </code></pre>
  
  <p>Any examples / ideas ?</p>