CCommandBar Methods
The following table lists CCommandBar methods:
Adds a Close button, and optionally, Help and OK buttons to the command bar. |
|
This method adds one or more images to the list of button images available for use in the command bar. |
|
Adds one or more buttons to a toolbar control. |
|
Creates and initializes a CCommandBar object. |
|
Instantiates a new command bar. |
|
Repositions and redraws the command bar after a command bar menu is modified. |
|
Retrieves the handle to a menu on the command bar. |
|
Retrieves the height of the command bar in pixels. |
|
This method adds one or more buttons to a toolbar control. |
|
Adds a combo box to the command bar. |
|
Adds a menu bar to the command bar. |
|
Adds a separator to the command bar. |
|
Shows or hides the command bar. |
CCeDocList class has become CDocList Class in MFC 8.0. The following is code from an MFC 3.0 application:
CCommandBar* pDocListCB = pDocList->GetCommandBar();
This code generates the following error:
MainFrm.cpp(115) : error C2039: 'GetCommandBar' : is not a member of 'CDocList'
Instead of using this code, you can create a CDocListCommandBar object in MFC 8.0.