다음을 통해 공유


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.

Syntax

class CMFCToolBarComboBoxEdit : public CEdit  

Members

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.

Inheritance Hierarchy

CObject

CCmdTarget

CWnd

CEdit

CMFCToolBarComboBoxEdit

Requirements

Header: afxtoolbarcomboboxbutton.h

CMFCToolBarComboBoxEdit::CMFCToolBarComboBoxEdit

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);

See Also

Hierarchy Chart
Classes
CMFCToolBarComboBoxButton Class