Share via


CCommandBar Methods

The following table lists CCommandBar methods:

CCommandBar::AddAdornments

Adds a Close button, and optionally, Help and OK buttons to the command bar.

CCommandBar::AddBitmap

This method adds one or more images to the list of button images available for use in the command bar.

CCommandBar::AddButtons

Adds one or more buttons to a toolbar control.

CCommandBar::CCommandBar

Creates and initializes a CCommandBar object.

CCommandBar::Create

Instantiates a new command bar.

CCommandBar::DrawMenuBar

Repositions and redraws the command bar after a command bar menu is modified.

CCommandBar::GetMenu

Retrieves the handle to a menu on the command bar.

CCommandBar::Height

Retrieves the height of the command bar in pixels.

CCommandBar::InsertButton

This method adds one or more buttons to a toolbar control.

CCommandBar::InsertComboBox

Adds a combo box to the command bar.

CCommandBar::InsertMenuBar

Adds a menu bar to the command bar.

CCommandBar::InsertSeparator

Adds a separator to the command bar.

CCommandBar::Show

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.

See Also

Reference

CCommandBar Class

Other Resources

Unique MFC for Devices Classes