UninitializeFlatSB function

Uninitializes flat scroll bars for a particular window. The specified window will revert to standard scroll bars.

Syntax


HRESULT UninitializeFlatSB(
   HWND hwnd
);

Parameters

hwnd

Type: HWND

A handle to the window with the flat scroll bars that will be uninitialized.

Return value

Type: HRESULT

Returns one of the following values.

Return codeDescription
E_FAIL

One of the window's scroll bars is currently in use. The operation cannot be completed at this time.

S_FALSE

The window does not have flat scroll bars initialized.

S_OK

The operation was successful.

 

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

Library

Comctl32.lib

DLL

Comctl32.dll (version 4.71 or later)

 

 

Show: