12345678910111213
case IDC_UPDATE: { char filename[80]; char mapname[80]; char maptype[80]; char nIndex = SendMessage( hwnd, CB_GETCURSEL, 0, 0 ); //Update the file GetDlgItemText(hwnd, IDC_TEXT, filename, 80); GetDlgItemText(hwnd, IDC_TEXT1, mapname, 80); SendMessage(IDC_COMBO, CB_GETLBTEXT, (WPARAM)nIndex, (LPARAM)maptype); } break;
SendDlgItemMessage(hwnd,IDC_COMBO, CB_GETLBTEXT, (WPARAM)nIndex, (LPARAM)maptype);
SendMessage(GetDlgItem(hwnd, IDC_COMBO), CB_GETLBTEXT, (WPARAM)nIndex, (LPARAM)maptype);