title: How to remove only horizontal scrollbar from CScrollView
body: <p>In Visual C++ with MFC, I want to remove unused horizontal scrollbar from CScrollView. I found a lot of methods, but I need vertical scrollbar. Naturally, OnSize must be overriden, not to call to base's OnSize. But vertical scrollbar must be remained, so I must call base's OnSize. For example, what will be the OnSize? Thank you. (I am not a beginner in programming, but I am a beginner in Graphic User Interface).</p>
  <p>Update (My English is not perfect):</p>
  <p>If the scrollbar is not required (the whole view is fit on the window), the scrollbar disappeares, but only if there is not splitter!</p>
  <pre><code>class CChildFrame: public CMDIChildWndEx {
  protected:
      CSplitterWndEx  m_wndSplitter;
  public:
      virtual BOOL OnCreateClient(CREATESTRUCT *, CCreateContext *const pContext) {
          return  m_wndSplitter.Create(this, 2, 1, CSize(60, 60), pContext);
      }
      // Project Wizard generated code
  };
  </code></pre>
  <p>Without this, menu item Split in Window menu is disabled, so, does not selectable: split view does not work. How can I enable automatic disappearing with splitter?</p>
  <p>This is independent from the splitter is enabled (there is 2 views), or does not enabled: the not required splitter does not disapper even if only 1 view is exist.</p>
  <p>The 2 views have own vertical scrollbar, but have shared horizontal scroll bar: they are scrolled at once. But I want to set different positions. How can I create own scroll bars?</p>