Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/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_Createfunction 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 fShowparameter set to false, before calling ShowWindowfor the parent window.
Requirements
Header | commctrl.h |
Library | commctrl.lib |
Windows Embedded CE | Windows CE 1.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |