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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modeless Dialog Transfer!!! Please HELP!!!

Status
Not open for further replies.

DrkPaladin

Programmer
May 18, 2002
33
CA
I need an easy way to send information from a modal dialog to a modeless dialog and take information from a modeless dialog to a modal dialog using tbe modal dialog to perform these tasks...

Please Help Me...
Thanks.
 
add a method SendGet(inMsg, outMsg)to your modeless dialog . Pass the pointer of the modeless dialog(pModalessDlg) to the constructor of your modal dialog. When you want to send and get messages to and from the modaless dialog, just call pModalessDlg->SendGet(inMsg,outMsg).
 
I have added a Method with an external name of "Stats" internal name "SendGet" and added a parameter "short m_RNum"... I have not worked with Automations so I do not no how they work. If you could help me out with this I would very much appretiate it. I will be sending int and bool to the modeless dialog and taking the information of those ints and bools with other modal dialogs...

Thanks.
 
I don't know what do you mean by "automation"? Can explain it further?
 
Don't ya have to enable Automation to add a Method???
 
No. Automation is another thing and is not related to adding a method at all.
 
Then how do you add a method? The only method I could find was under the Automation tab in the MFC ClassWizard...
 
in the project workspace (usally it is at the left pane of your VC++ studio). Click the "ClassView" tab , you can see a list of the classes in your project. Then right click the class you want, a menu is popped up . Select the menu item of "Add Member Function ...". That's it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top