FlatSB_ShowScrollBar function (commctrl.h)

Shows or hides a flat scroll bar. If flat scroll bars are not initialized for the window, this function calls the standard ShowScrollBar function.

Syntax

BOOL FlatSB_ShowScrollBar(
  HWND unnamedParam1,
  int  code,
  BOOL unnamedParam3
);

Parameters

unnamedParam1

Type: HWND

A handle to the window that contains the flat scroll bar. This window handle must have been passed previously in a call to InitializeFlatSB.

code

Type: int

The scroll bar type. It can be one of the following values:

Value Meaning
SB_BOTH
Shows or hides the horizontal and vertical scroll bars.
SB_HORZ
Shows or hides the horizontal scroll bar.
SB_VERT
Shows or hides the vertical scroll bar.

unnamedParam3

Type: BOOL

Specifies whether the scroll bar should be shown or hidden. If this parameter is nonzero, the scroll bar will be shown; if it is zero, the scroll bar will be hidden.

Return value

Type: BOOL

Returns nonzero if successful, or zero otherwise.

Remarks

Note  Flat scroll bar functions are implemented in Comctl32.dll versions 4.71 through 5.82. Comctl32.dll versions 6.00 and higher do not support flat scroll bars.
 

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h
Library Comctl32.lib
DLL Comctl32.dll (version 4.71 or later)