I
ian
hello all
im currently learning windows programming
im having trouble adding text to a combo list box
im using the following with visual studio
HWND hwndList = GetDlgItem(hWnd, IDC_LIST);
SendMessage(hwndList,CB_ADDSTRING,100,(LPARAM)(LPCSTR)"Pencil");
SendMessage(hwndList,CB_SETCURSEL,0,0);
can anyone tell me what im doing wrong
cheers
im currently learning windows programming
im having trouble adding text to a combo list box
im using the following with visual studio
HWND hwndList = GetDlgItem(hWnd, IDC_LIST);
SendMessage(hwndList,CB_ADDSTRING,100,(LPARAM)(LPCSTR)"Pencil");
SendMessage(hwndList,CB_SETCURSEL,0,0);
can anyone tell me what im doing wrong
cheers