c++ win32 Adding values to ComboBox

1
2
3
SendMessage(hWndComboBox, CB_ADDSTRING, 0, reinterpret_cast<LPARAM> (_T("Item1")));
SendMessage(hWndComboBox, CB_ADDSTRING, 0, reinterpret_cast<LPARAM> (_T("Item2")));
SendMessage(hWndComboBox, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>( _T("Item3")));


strings not appear visually???
Last edited on
use ComboBox_AddString instead ( http://msdn.microsoft.com/en-us/library/windows/desktop/bb856463%28v=vs.85%29.aspx ) then check for return value and use GetLastError in case of error
Topic archived. No new replies allowed.