Ok, I know how to use WM_RBUTTONDOWN, and how to put strings in a MessageBox. How would I get the selected item in a ListBox and put it into a char?
Ok, I know how to use WM_RBUTTONDOWN, and how to put strings in a MessageBox. How would I get the selected item in a ListBox and put it into a char?
You do it in the same way as putting strings in the list box. You send LB_GETCURSEL message to your list box to obtain the index. You can then use this index entry in a LB_GETTEXT message to get the string if you need it. Check this link for details.