Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parent child interaction - passing parameters etc...

Status
Not open for further replies.

shetlandbob

Programmer
Mar 9, 2004
528
0
0
GB
Hi,

Ok here is an example of my scenario:

I have a MFC diaog control with a number of checkboxes which I can alter as per usual. I have another form which I load up from a menu (its a seperate class) with the main form the parent of the new form. Among other things I can alter the status of the check boxes with my new form, how do I pass this info (ideally in real time) back to the main form? Do I have to pass all variables that I want to alter from the main class in the initial constructor of the sub form?

Sorry if this is very basic or you cant understand what I'm asking.

Cheers
 
Keep a pointer of the parent form in the subform or use _MdiParent() property to store the parent of the subform.
-obislavu-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top