Sign in to follow this  

Retrieving string from combobox and adding it to listbox

Recommended Posts

noatom    927
index = SendDlgItemMessage(hDlg,IDC_COMBO1,CB_GETCURSEL,NULL,NULL);
TCHAR buffer[30];
SendDlgItemMessage(hDlg, IDC_LIST1, LB_ADDSTRING, 0, (LPARAM)buffer);


When it's executed,something is added to the listbox(weird symbols).What could be the problem?The combobox has strings in it.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this