This method initializes the Windows CE list box and attach it to the CListBox object.
To construct a CListBox object, call the constructor, then call Create.
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 |
BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd,
UINT nID );
Windows CE supports a new list box style, called LBS_EX_CONSTSTRINGDATA. When an application inserts a string into a list box that has this style, the list 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 list box. All list boxes in Windows CE have the LBS_HASSTRINGS style by default.
For more information on list box styles, see the Windows and Control Styles chapter of the Windows CE SDK Guide.