Figure 2 ComboBoxEx Statement List
// ComboBoxEx Statement List
// Set edit style
Styles (CBS_DROPDOWN,CBS_DROPDOWNLIST,0,0,Recreate);
// Delete item 3 (Mars)
MSG (CB_DELETESTRING,3,0);
// Find string: Jupiter
MSG (CB_FINDSTRINGEXACT,-1,"Jupiter");
// Get current list count
MSG (CB_GETCOUNT,0,0);
// Show drop down list
MSG (CB_SHOWDROPDOWN,TRUE,0);
// Set current selection
MSG (CB_SETCURSEL,5,0);
// Show drop down list
MSG (CB_SHOWDROPDOWN,FALSE,0);
// Set item data
MSG (CB_SETITEMDATA,3,1234);
// Set item height
MSG (CB_SETITEMHEIGHT,0,10);
// Limit text that may be typed in edit control
MSG (CB_LIMITTEXT,10,0);
// Set ComboBoxEx item properties to callback
MSG (CBEM_SETITEM,
0,
COMBOBOXEXITEM(
CBEIF_TEXT|CBEIF_INDENT|CBEIF_IMAGE|CBEIF_SELECTEDIMAGE|CBEIF_INDENT,2,
LPSTR_TEXTCALLBACK,127,
I_IMAGECALLBACK,
I_IMAGECALLBACK,
I_IMAGECALLBACK,
I_INDENTCALLBACK,
0));