CCeCommandBar::InsertComboBox

This method inserts a combo box into the command bar.

At a Glance

Header file: Wcebar.h
Platforms: Palm-size PC, H/PC Pro
Windows CE versions: 2.10 and later

Syntax

CComboBox* InsertComboBox(int nWidth, WORD idComboBox, int nButton = CMDBAR_END, DWORD dwStyle CBS_DROPDOWNLIST |WS_VSCROLL|);

Parameters

nWidth
Width, in pixels, of the combo box.
idComboBox
Identifier of the combo box.
nButton
Zero-based index of a button in the command bar.
dwStyle
Specifies which window styles to apply to the combo box. The WS_VISIBLE and WS_CHILD styles are applied automatically. The default styles are CBS_DROPDOWNLIST and WS_WSCROLL.

Return Values

A pointer to the menu identified by idComboBox, or NULL if the function fails.

Remarks

This method inserts the combo box to the left of the button identified by nButton.

See Also

CComboBox, CreateWindow