SetDlgItemText Problem
-
I've got to Dialogs (DialogA & DialogB). DialogA has an edit box which I want to write to. DialogB consists of a few BUTTONS, when the user clicks one of these buttons I need a message to appear in the edit box of DialogA. Would some detail how this might be done using the following APIs GetDlgItemText SetDlgItemText Kind Regards Caoimh
-
I've got to Dialogs (DialogA & DialogB). DialogA has an edit box which I want to write to. DialogB consists of a few BUTTONS, when the user clicks one of these buttons I need a message to appear in the edit box of DialogA. Would some detail how this might be done using the following APIs GetDlgItemText SetDlgItemText Kind Regards Caoimh
Very simple, get the pointer of dialogA in dialogB, then in the eventhandler of the button in dialogB do the following pDlg1->SetDlgItemText(IDC_XXX,"Text");
I have lost more blood shaving than on the battlefield - Adolf Hitler