I'm trying to disable scrollbars in my CSplitterWnd object. It doesn't seem to be working even though it should be straight forward. I've tried everything I can find but the scrollbars just won't go away. Has anyone had luck hiding scrollbars in a CSplitterWnd? I really don't want to derive my own class.
Here's what I've tried in my CView's OnCreatClient():
Here's what I've tried in my CView's OnCreatClient():
Code:
result = m_wndSplitter.CreateStatic(this, 1, 2);
if(result == 0) return FALSE;
result = m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CMenuFormView), menuSize, pContext);
if(result == 0) return FALSE;
result = m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CRecFormView), viewSize, pContext);
if(result == 0) return FALSE;
m_wndSplitter.EnableScrollBarCtrl(SB_HORZ, FALSE); //still shows
m_wndSplitter.ShowScrollBar(SB_HORZ, FALSE); //still shows
m_wndSplitter.SetScrollRange(SB_HORZ, 0, 0, TRUE); //still shows