taken from http://msdn.microsoft.com/library/psdk/winui/scrolbar_6rzm.htm
The ShowScrollBar function shows or hides the specified scroll bar.
BOOL ShowScrollBar( HWND hWnd, // handle to window int wBar, // scroll bar BOOL bShow // scroll bar visibility );
Value | Meaning |
---|---|
SB_BOTH | Shows or hides a window's standard horizontal and vertical scroll bars. |
SB_CTL | Shows or hides a scroll bar control. The hWnd parameter must be the handle to the scroll bar control. |
SB_HORZ | Shows or hides a window's standard horizontal scroll bars. |
SB_VERT | Shows or hides a window's standard vertical scroll bar. |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
You should not call this function to hide a scroll bar while processing a scroll bar message.
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Winuser.h; include Windows.h.
Library: Use User32.lib.