Call this member function to initialize the Windows list box and attach it to the CListBox object.
You construct a CListBox object in two steps. First call the constructor, then call Create.
BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
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 List Box Styles.
CListBox Overview, CListBox Member Functions, Control Classes, CListBox::CListBox