EDIT BOX PROBLEMS
-
I've two separate dialogs (Dialog1,Dialog2), each having its own class. Dialog1 has an Edit box which I need to write to, from Dialog2. In Dialog1 I normally use CString Status; GetDlgItemText(IDC_EXIT_BOX_ONE, STATUS); SetDlgItemText(IDC_EDIT_BOX_ONE, "TEST APPLICATION"); However If I do the very same in Dialog2 nothing appears in the Edit box of Dialog1. Any Suggestions. (Note required to use GetDlgItemText to maintain all information on the Edit box) Kind Regards Caoimh
-
I've two separate dialogs (Dialog1,Dialog2), each having its own class. Dialog1 has an Edit box which I need to write to, from Dialog2. In Dialog1 I normally use CString Status; GetDlgItemText(IDC_EXIT_BOX_ONE, STATUS); SetDlgItemText(IDC_EDIT_BOX_ONE, "TEST APPLICATION"); However If I do the very same in Dialog2 nothing appears in the Edit box of Dialog1. Any Suggestions. (Note required to use GetDlgItemText to maintain all information on the Edit box) Kind Regards Caoimh
How will it work??? IDC_EXIT_BOX_ONE is a dialog item of the other dialog. to do this you need to have the pointer of the other dialog CDialog1 *pDlg1; so from the second dialog //in CDialog2 you say pDlg1->GetDlgItemText(IDC_EXIT_BOX_ONE, STATUS); pDlg1->SetDlgItemText(IDC_EDIT_BOX_ONE, "TEST APPLICATION");
1.Why do people not wearing a wrist watch look at their wrist for time when people ask for time. 2.Why do people ask for time from people who are not wearing a wrist watch. Prakash, India.