Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide scrollbars in CSplitterWnd

Status
Not open for further replies.

gorgor

Programmer
Aug 15, 2002
164
US
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():

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top