Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The ShowScrollBar function shows or hides the specified scroll bar.
BOOL ShowScrollBar(
[in] HWND hWnd,
[in] int wBar,
[in] BOOL bShow
);
[in] hWnd
Type: HWND
Handle to a scroll bar control or a window with a standard scroll bar, depending on the value of the wBar parameter.
[in] wBar
Type: int
Specifies the scroll bar(s) to be shown or hidden. This parameter can be one of the following values.
[in] bShow
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.
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.
You should not call this function to hide a scroll bar while processing a scroll bar message.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | winuser.h (include Windows.h) |
Library | User32.lib |
DLL | User32.dll |
API set | ext-ms-win-ntuser-misc-l1-2-0 (introduced in Windows 8.1) |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today