ComboBox problem
int getCurent = 0;
case WM_CREATE:
SendMessage(CB, CB_SETCURSEL, 3, 0);
getCurent = SendMessage(CB, CB_GETCURSEL, 0, 0);
everithing is ok for getCurent I got 3, but how I can get information of curent selected item out of create message, I tried in WM_COMMAND:
case WM_COMMAND:
switch LOWORD(wParam)
{
case IDCOMBOBOX:
switch HIWORD(wParam)
{
case CBN_SELENDOK:
getCurent = SendMessage(CB, CB_GETCURSEL, NULL, NULL) ;
wsprintf(b, "Index: %i", getCurent);
MessageBox(hwnd, b, "info", MB_OK);
return 0;
}
return 0;
}
But like getCurent value I always get a 0, why ?

