This message was edited by chick80 at 2003-11-16 6:9:21
: It should work fine. You dont need to set any styles.
:
: Show us some code.
:
There's not much to show... here it is:
SendDlgItemMessage(hDlg, IDC_ANILIST, CB_ADDSTRING, 0, (LPARAM)"X Position");
int num = (int)SendDlgItemMessage(hDlg, IDC_ANILIST, CB_GETCOUNT, 0, 0);
SendDlgItemMessage(hDlg, IDC_ANILIST, CB_SETITEMDATA, (WPARAM) num, 5);
SendDlgItemMessage(hDlg, IDC_ANILIST, CB_SETCURSEL, 0, 0);
sel = (int)SendDlgItemMessage(hDlg, IDC_ANILIST, CB_GETITEMDATA, 0, 0);
// sel should be 5, but it is 0... I cannot understand why.
How beautiful, if Sorrow had not made sorrow more beautiful than Beauty itself.
JOHN KEATS