CommandBar_Show

The CommandBar_Show function shows or hides the command bar.

Syntax

BOOL CommandBar_Show(HWND hwndCB, BOOL fShow);

At a Glance

Header file: Commctrl.h
Platforms: H/PC
Windows CE versions: 1.0 and later

Parameters

hwndCB
The command bar's window handle. This handle is returned by the CommandBar_Create function when the command bar is created.
fShow
Specifies whether to show or hide the command bar. Set this parameter to TRUE to show the command bar, or FALSE to hide it.

Return Values

The previous show state of the command bar. This function returns TRUE if command bar was displayed, FALSE if it was hidden.

Remarks

Command bars are created with the show state set to TRUE. To hide the command bar before the window is displayed call CommandBar_Show, with the fShow parameter set to false, before calling ShowWindow for the parent window.

See Also

CommandBar_Create, CommandBar_IsVisible, ShowWindow