Breyta

Deila með


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

combo
[in] 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