Home > Software engineering >  Father and son in MFC window passing parameters
Father and son in MFC window passing parameters

Time:09-19

The name of the parent window for Main_win, name of the child window for Create_win,
Because of the need in Main_win. CPP event pop-up window by pressing the button, so in Main_win. H contains Create_win. H,
Want to pass parameters between father and son window again, child Windows need to invoke the parent window data members, so Create_win. H contains Main_win. J h,
Compile times wrong below:

May I ask which step is wrong?

CodePudding user response:

Line error is in Main_win. H defines the child window of the dialog box in a pointer

CodePudding user response:

The class XXX; A prerequisite for the class declaration

CodePudding user response:

PostMessage and SendMessage to know,

CodePudding user response:

You can try custom message, through the message parameter you want to transfer data
  • Related