I'm using C and WinAPI only - no MFC or stuff like that.
Expand|Select|Wrap|Line Numbers
- hndCombo = CreateWindow(...,
- WS_CHILD | WS_VISIBLE | WS_TAPSTOP |
- CBS_HASSTRINGS | CBS_DROPDOWNLIST,
- ...);
Expand|Select|Wrap|Line Numbers
- SetWindowText(hndCombo, ...);
- SetDlgItemText(parent, id_combo, ...);
- SendMessage(hndCombo, WM_SETTEXT, 0, (LPARAM)...);
Expand|Select|Wrap|Line Numbers
- drop down list
- "option 1"
- "option 2"
- "option 3" stop showing here
- "display text but invisible to user"
- SendMessage(hndCombo, CB_SETCURSEL, 3, 0);