User32ShowScrollBar(IntPtr, ScrollBarOrientation, Boolean) Method
Shows or hides the specified scrollbar of a Control/Window.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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(
IntPtr hWnd,
ScrollBarOrientation bar,
bool show
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function ShowScrollBar (
hWnd As IntPtr,
bar As ScrollBarOrientation,
show As Boolean
) As Boolean
Dim hWnd As IntPtr
Dim bar As ScrollBarOrientation
Dim show As Boolean
Dim returnValue As Boolean
returnValue = User32.ShowScrollBar(hWnd,
bar, show)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static bool ShowScrollBar(
IntPtr hWnd,
ScrollBarOrientation bar,
bool show
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member ShowScrollBar :
hWnd : IntPtr *
bar : ScrollBarOrientation *
show : bool -> bool
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
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.
Boolean If the function succeeds,
otherwise.