Dela via


CMFCRibbonComboBox::CMFCRibbonComboBox

Constructs a CMFCRibbonComboBox object.

public:
CMFCRibbonComboBox(
   UINT nID,
   BOOL bHasEditBox=TRUE,
   Int nWidth=-1,
   LPCTSTR lpszLabel=NULL,
   Int nImage=-1
);
protected:
CMFCRibbonComboBox();

Parameters

  • [in] nID
    The ID of the combo box.

  • [in] bHasEditBox
    TRUE if you want an edit box within the control; FALSE otherwise.

  • [in] nWidth
    Width of the combo box in pixels; or -1 for the default width.

  • [in] lpszLabel
    The display label of the combo box.

  • [in] nImage
    The small image index of the combo box.

Remarks

The default width is 108 pixels.

Requirements

Header: afxribboncombobox.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCRibbonComboBox Class