Getting index of chosen item in the combo box
How do you get the index of the chosen item in the combo box...
How would you determine the index number of the combo box? i could get the text but not the index.
int index = SendMessage( hwnd, CB_GETCURSEL, (WPARAM) wParam, (LPARAM) lParam );
MessageBox(hwnd, (LPCTSTR) index , (LPCTSTR) "The Index is",MB_ICONINFORMATION);
And a general question... when you do combo box (set of conditions) how do you do the conditionals (if...else, switch) do you make the condition thru its name or thru its index?