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
| Name | Description |
|---|---|
| CMFCToolBarComboBoxEdit::CMFCToolBarComboBoxEdit | Constructs a CMFCToolBarComboBoxEdit object. |
CMFCToolBarComboBoxEdit::~CMFCToolBarComboBoxEdit | Destructor. |
Public Methods
| Name | Description |
|---|---|
CMFCToolBarComboBoxEdit::PreTranslateMessage | Translates 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.
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);