Share via


CommandBar_Show (Windows Embedded CE 6.0)

1/6/2010

This function shows or hides the command bar.

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 Value

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.

Requirements

Header commctrl.h
Library commctrl.lib
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Command Bars Functions
CommandBar_Create
CommandBar_IsVisible
ShowWindow