This class enables you to create and modify command bars. A command bar is a toolbar that can include a menu bar as well as the Close (X) button, the Help (?) button, and the OK button. By combining a menu bar and a toolbar in a single control, a command bar conserves limited screen space.
A command bar can contain menus, combo boxes, buttons, and separators. (A separator is a blank space you can use to divide other elements into groups or to reserve space in a command bar.)
Header file: | Wcebar.h |
Platforms: | Palm-size PC, H/PC Pro |
Windows CE versions: | 2.10 and later |
After you create the a CCeCommandBar object, use the InsertMenuBar, InsertComboBox, and InsertSeparator methods to insert menu bars, combo boxes and separators, respectively. When you have finished adding all other elements to the command bar, use the AddAdornments method to add the Cancel button, and optionally, the Help and OK buttons. Use the DrawMenuBar method to redraw the command bar each time you modify a menu on the command bar.