Home > Software engineering >  MCF how to edit box in the dialog write data to the client area
MCF how to edit box in the dialog write data to the client area

Time:10-05

As title, I would like to edit box in a dialog box, enter a data in determination of click on the dialog box button allows the data to the client area of the edit box, how should operate,

I have been in ontouch wrote
 if (pDoc - & gt; The date [0]!='n') 
{
STR. The Format (" % s % s ", "date:", pDoc - & gt; The date);
PDC - & gt; TextOut (10150, STR);
}


Excuse me,
Strcpy (pDoc - & gt; The date, DLG. M_e1); Where should be written in

CodePudding user response:

Write in the button onclick event callback, want the updatedata once

CodePudding user response:


CxxxDialog DLG (TRUE);
If (DLG) DoModal ()==IDOK)
{
Cstrings STR=DLG. DLG. M_e1;
}

STR is what you want

CodePudding user response:

Note m_e1 must be cstrings, not is the edit control (can be associated to cstrings), because the dialog window has been destroyed
  • Related