CommandBar_Show

This function shows or hides the command bar.

At a Glance

Header file: Commctrl.h
Windows CE versions: 1.0 and later

Syntax

BOOL CommandBar_Show(HWND hwndCB, BOOL fShow);

Parameters

hwndCB

Handle to the command bar’s window. This handle is returned by the CommandBar_Create function when the command bar is created.

fShow

Boolean that 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