CCommandBar::InsertComboBox
Inserts a combo box into the command bar.
CComboBox* InsertComboBox(
int nWidth,
DWORD dwStyle,
WORD wComboBoxID,
WORD wButton );
Parameters
The following table describes the parameters for the InsertComboBox method of the CCommandBar Class.
nWidth
Specifies the width, in pixels, of the combo box.dwStyle
Specifies which window styles apply to the combo box. The WS_VISIBLE and WS_CHILD styles are applied automatically. The default styles are CBS_DROPDOWNLIST and WS_SCROLL.wComboBoxID
Specifies the identifier of the combo box.wButton
Specifies the zero-based index of a button in the command bar.
Return Values
A pointer to the menu identified by wComboBoxID if successful, and null otherwise.
Remarks
This method inserts the combo box to the left of the button identified by wButton.
Requirements
Windows CE version 5.0 or later versions.
Header file: Declared in Afxext.h.