User32ShowScrollBar(SafeHandle, ScrollBarOrientation, Boolean) Method

Shows or hides the specified scrollbar of a Control/Window.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static bool ShowScrollBar(
	SafeHandle hWnd,
	ScrollBarOrientation bar,
	bool show
)

Parameters

hWnd  SafeHandle
A handle to a scrollbar control or a window with a standard scrollbar, depending on the value of the bar parameter.
bar  ScrollBarOrientation
Specifies the scrollbar(s) to be shown or hidden.
show  Boolean
Specifies whether the scroll bar is shown or hidden.

If this parameter is , the scroll bar is shown; otherwise, it is hidden.

Return Value

Boolean
If the function succeeds, otherwise.

Remarks

See Also