CComboBox::Create

This method creates the Windows CE combo box and attaches it to the CComboBox object.

To construct a CComboBox object, call the constructor, then call Create.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

Remarks

Windows CE supports a new extended style for combo boxes, 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 does not support the CBS_SIMPLE, CBS_OWNERDRAWFIXED, or CBS_OWNERDRAWVARIABLE styles.

For more information on supprted combo box styles, see the Window and Control Styles chapter of the Windows CE SDK Guide.

See Also

CComboBox::CComboBox