retrieving data from listboxes
i'm working on a small app with a listbox, and i'm looking for a way to display the users selection. It's a dialog application, and i'm using a single-selection listbox.
I've tried this, but without success:
Any ideas what i'm doing wrong?
LRESULT selection = SendMessage(hWnd, LB_GETTEXT, 0, 0);
SetDlgItemText(hWnd, IDC_TEXT, (LPCSTR)selection);