BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );
Return Value
Nonzero if the object was created successfully; otherwise 0.
Parameters
dwStyle
Specifies the combination of combo box styles applied to the combo box. See Remarks below for more information about styles.
rect
A reference to a CRect object or RECT structure, which is the position and size of the combo box.
pParentWnd
A pointer to a CWnd object that is the parent window of the combo box (usually a CDialog). It must not be NULL.
nID
Specifies the combo box’s control ID.
Remarks
Create a CComboBoxEx object in two steps:
When you call Create, MFC initializes the common controls.
When you create the combo box, you can specify any or all of the following combo-box styles:
All other styles passed when you create the window are ignored. The ComboBoxEx control also supports extended styles that provide additional features. These styles are described in ComboBoxEx control extended styles, in the Platform SDK. Set these styles by calling SetExtendedStyle.
CComboBoxEx Overview | Class Members | Hierarchy Chart
See Also CComboBoxEx::CComboBoxEx