Home > Software engineering >  MFC based on dialog programming, how to realize the child dialogs input data in the edit box, on dis
MFC based on dialog programming, how to realize the child dialogs input data in the edit box, on dis

Time:09-18

MFC based on dialog programming, how to realize the child dialogs input data in the edit box, on display in the main dialog interface?

CodePudding user response:


In the edit box data change message within main form to send a custom message, pass the parameters of the data through the message to main form
Reference letter, and send message function:
LRESULT SendMessage (
The HWND HWND,
UINT Msg,
WPARAM WPARAM,
LPARAM LPARAM
);

CodePudding user response:

Edit box to add category selected value variables is a cstrings can direct assignment and then the UpdateData (FALSE);

Or
SetDlgItemText (control ID, "123");

CodePudding user response:

refer to the second floor lunatic7 response:
edit box to add variables category selected value is a cstrings can direct assignment and then the UpdateData (FALSE);

Or
SetDlgItemText (control ID, "123");


Wrong,,

CodePudding user response:

You can send a message to the main window, GetParent () - & gt; SendMessage/PostMessage (... );
  • Related