Hey,
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:
Code:
CString str;
CListBox* pGetList[512];
for(i=0; i<10; i++)
{
pGetList[i] = (CListBox*) GetDlgItem(IDC_LIST1);
pGetList[i]->GetText((pGetList[i]->GetCurSel()),str);
CWnd* pWnd = txtbox[i];
pWnd->SetWindowText(str);
}