void ShowScrollBar(hWnd,wBar,bShow)
This function displays or hides a scroll bar, depending on the value of the bShow parameter. If bShow is nonzero, the scroll bar is displayed; if bShow is zero, the scroll bar is hidden.
Parameter | Type/Description |
hWnd | HWND Identifies a window that contains a scroll bar in its nonclient area if the wBar parameter is SB_HORZ, SB_VERT, or SB_BOTH. If wBar is SB_CTL, hWnd identifies a scroll-bar control. | ||
wBar | WORD Specifies whether the scroll bar is a control or part of a window's nonclient area. If it is part of the nonclient area, wBar also indicates whether the scroll bar is positioned horizontally, vertically, or both. It must be one of the following values: | ||
Value | Meaning | ||
SB_BOTH | Specifies the window's horizontal and vertical scroll bars. | ||
SB_CTL | Specifies that the scroll bar is a control. | ||
SB_HORZ | Specifies the window's horizontal scroll bar. | ||
SB_VERT | Specifies the window's vertical scroll bar. | ||
bShow | BOOL Specifies whether or not Windows hides the scroll bar. If bShow is zero, the scroll bar is hidden. Otherwise, the scroll bar is displayed. |
None.
An application should not call this function to hide a scroll bar while processing a scroll-bar notification message.