ShowScrollBar function
The ShowScrollBar function shows or hides the specified scroll bar.
Syntax
BOOL ShowScrollBar(
_In_ HWND hWnd,
_In_ int wBar,
_In_ BOOL bShow
);
Parameters
- hWnd [in]
-
Type: HWND
Handle to a scroll bar control or a window with a standard scroll bar, depending on the value of the wBar parameter.
- wBar [in]
-
Type: int
Specifies the scroll bar(s) to be shown or hidden. This parameter can be one of the following values.
- bShow [in]
-
Type: BOOL
Specifies whether the scroll bar is shown or hidden. If this parameter is TRUE, the scroll bar is shown; otherwise, it is hidden.
Return value
Type: BOOL
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.
Remarks
You should not call this function to hide a scroll bar while processing a scroll bar message.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 10/27/2012
