CMFCToolBarComboBoxEdit Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CMFCToolBarComboBoxEdit Class.

The framework uses the CMFCToolBarComboBoxEdit class to create a toolbar button that behaves like an editable combo box control.

class CMFCToolBarComboBoxEdit : public CEdit  

Public Constructors

NameDescription
CMFCToolBarComboBoxEdit::CMFCToolBarComboBoxEditConstructs a CMFCToolBarComboBoxEdit object.
CMFCToolBarComboBoxEdit::~CMFCToolBarComboBoxEditDestructor.

Public Methods

NameDescription
CMFCToolBarComboBoxEdit::PreTranslateMessageTranslates window messages before they are dispatched to the TranslateMessage and DispatchMessage Windows functions. (Overrides CWnd::PreTranslateMessage.)

Remarks

Derive a class from the CMFCToolBarComboBoxEdit class to customize its edit operations.

CObject

CCmdTarget

CWnd

CEdit

CMFCToolBarComboBoxEdit

Header: afxtoolbarcomboboxbutton.h

Constructs a CMFCToolBarComboBoxEdit object.

CMFCToolBarComboBoxEdit(CMFCToolBarComboBoxButton& combo);

Parameters

[in] combo
A reference to a CMFCToolBarComboBoxButton object, which is a toolbar button that contains a combo box control.

Example

The following example demonstrates how to construct an object of the CMFCToolBarComboBoxEdit class. This code snippet is part of the IE Demo sample.

	CMFCToolBarComboBoxButton* pButton = new CMFCToolBarComboBoxButton();
	CMFCToolBarComboBoxEdit* pWndEdit = new CMFCToolBarComboBoxEdit(*pButton);

Hierarchy Chart
Classes
CMFCToolBarComboBoxButton Class

Show: