How do you get the index of the chosen item in the combo box...
Code:
if( HIWORD(wParam)==CBN_SELCHANGE)
{
int index = SendMessage( hwnd, CB_GETCURSEL, (WPARAM) wParam, (LPARAM) lParam );
MessageBox(hwnd, (LPCTSTR) index , (LPCTSTR) "The Index is",MB_ICONINFORMATION);
}
How would you determine the index number of the combo box? i could get the text but not the index.
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?
Thanks!