Visual Studio 2010 - Visual C++
CWnd::GetScrollBarCtrl
Call this member function to obtain a pointer to the specified sibling scroll bar or splitter window.
virtual CScrollBar* GetScrollBarCtrl( int nBar ) const;
Parameters
Return Value
A sibling scroll-bar control, or NULL if none.
Remarks
This member function does not operate on scroll bars created when the WS_HSCROLL or WS_VSCROLL bits are set during the creation of a window. The CWnd implementation of this function simply returns NULL. Derived classes, such as CView, implement the described functionality.
Requirements
Header: afxwin.h
See Also