EnableScrollBar function
Applies to: desktop apps only
The EnableScrollBar function enables or disables one or both scroll bar arrows.
Syntax
BOOL EnableScrollBar( __in HWND hWnd, __in UINT wSBflags, __in UINT wArrows );
Parameters
- hWnd [in]
-
Type: HWND
Handle to a window or a scroll bar control, depending on the value of the wSBflags parameter.
- wSBflags [in]
-
Type: UINT
Specifies the scroll bar type. This parameter can be one of the following values.
- wArrows [in]
-
Type: UINT
Specifies whether the scroll bar arrows are enabled or disabled and indicates which arrows are enabled or disabled. This parameter can be one of the following values.
Return value
Type: BOOL
If the arrows are enabled or disabled as specified, the return value is nonzero.
If the arrows are already in the requested state or an error occurs, the return value is zero. To get extended error information, call GetLastError.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
Send comments about this topic to Microsoft
Build date: 3/6/2012
[DllImport("user32.dll", CharSet=CharSet.Auto, SetLastError=true, ExactSpelling=true)]
public static extern bool EnableScrollBar(HandleRef hWnd, int nBar, int value);
- 4/25/2009
- dmex