CCmdBar Class |
Description
The class responsible for creating a Commandbar control. A Commandbar control is supported on the Windows CE operating system. It is not supported on the Win32/64 operating systems.
The command bar is unique to Windows CE. It combines a menu bar, toolbar, and an optional address bar. Windows CE supports multiple command bars, each containing gripper controls that enable users to hide buttons and menus. Command bars can contain combo boxes, edit boxes, and buttons, as well as other types of controls. They also can include the Close (X) button, the Help (?) button, and the OK button.
CCmdBar Members
CCmdBar | CCmdBar();Constructor for CCmdBar. |
AddAdornments | BOOL AddAdornments(DWORD dwFlags);Adds a button, and optionally, Help and OK buttons, to the command bar. |
AddBitmap | int AddBitmap(int idBitmap, int iNumImages, int iImageWidth, int iImageHeight);Adds one or more images to the list of button images available in the command bar. |
AddButtons | BOOL AddButtons(int nButtons, TBBUTTON* pTBButton);Adds one or more toolbar buttons to a command bar control. |
GetHeight | int GetHeight() const;Retrieves the height of the command bar in pixels. |
InsertComboBox | HWND InsertComboBox(int iWidth, UINT dwStyle, WORD idComboBox, WORD iButton);Inserts a combo box into the command bar. |
IsVisible | BOOL IsVisible();Retrieves the visibility state of the command bar. |
Show | BOOL Show(BOOL fShow);Shows or hides the command bar. |
Base class Members
For base class members, refer to the members of CWnd.
Summary Information
Header file | wceframe.h |
Win32/64 support | No |
WinCE support | Yes |