Qutestion about combo box, I know I should not post this thread in this place, but...
This is a discussion on Qutestion about combo box, I know I should not post this thread in this place, but... within the C Programming forums, part of the General Programming Boards category; Code:
case IDB_CHOOSE:
cob_hwnd = GetDlgItem(hwnd,COB_COUNTRY);
cob_pos = (int)SendMessage(cob_hwnd,CB_GETCURSEL,0,0);
if(CB_ERR == SendDlgItemMessage
(hwnd,COB_COUNTRY,
CB_GETLBTEXT,
(WPARAM)1,(LPARAM)(LPCSTR)szCountryname)
{
error = GetLastError();
MessageBox(hwnd,"ttt","ttt",MB_OK);
...