ScrollBar_Enable macro (windowsx.h)

Enables or disables a scroll bar control.

Syntax

BOOL ScrollBar_Enable(
   HWND hwndCtl,
   UINT flags
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

flags

Type: UINT

Flags that specify the arrows affected and whether they are enabled or disabled. See the wArrows parameter of EnableScrollBar for more information.

Return value

Type: BOOL

If the arrows are enabled or disabled as specified, the return value is nonzero.

Remarks

The macro expands to a call to EnableScrollBar with SB_CTL in the wSBFlags parameter.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header windowsx.h