CComboBox::Create

This member function creates the Windows combo box and attaches it to the CComboBox object.

You construct a CComboBox object in two steps. First call the constructor, then call Create.

Syntax

BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

Windows CE supports a new extended style for combo boxes, called CBS_EX_CONSTSTRINGDATA. When an application inserts a string into the list part of a combo box that has this style, the combo box stores the pointer passed to it by the application rather than copying the string. This saves RAM resources when you have a large table of strings in ROM that you want to insert into a combo box.. All combo boxes in Windows CE have the LBS_HASSTRINGS style by default. Windows CE doesn't support the CBS_SIMPLE style, the CBS_OWNERDRAWFIXED, or the CBS_OWNERDRAWVARIABLE styles. For more information on supprted combo box, see Combo Box Styles.

See Also

CComboBox Overview, CComboBox Member Functions, Control Classes, CComboBox::CComboBox