How do I make it wait for user input
I have this loop that will transfer a selected item from a listbox to an edit box. Every iteration it takes the same selected item from the list and puts it into the next edit box. I want it to wait for the user to select another item in the listbox before it copies it into the edit box. Every iteration it should wait for user input (selection). How do I do that?
Here's what I got:
for(i=0; i<10; i++)
pGetList[i] = (CListBox*) GetDlgItem(IDC_LIST1);
CWnd* pWnd = txtbox[i];