Variables between MDI and MDI-child... 
Author Message
 Variables between MDI and MDI-child...

(MS Visual C++ 5.0)

How can I use a variable from the MDI-Mainframe in the MDI-Childframe??

Something like this:

int TEST; // a variable of the mainframe

????.TEST = 24; // a function of the childframe

What's the name of the Mainframe? (MFC) or how can I find out this name?



Wed, 04 Oct 2000 03:00:00 GMT  
 Variables between MDI and MDI-child...

use AfxGetMainWnd( );
or use
 pMainFrame member of application object holds the pointer to the mainframe
(MDI frame) window. use AfxGetApp to get the app pointer.

--
-------------------------------------------------------
Rajesh Parikh
Microsoft Certified Solution Developer

-------------------------------------------------------

Quote:

>(MS Visual C++ 5.0)

>How can I use a variable from the MDI-Mainframe in the MDI-Childframe??

>Something like this:

>int TEST; // a variable of the mainframe

>????.TEST = 24; // a function of the childframe

>What's the name of the Mainframe? (MFC) or how can I find out this name?



Wed, 04 Oct 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Opening a new MDI child when no MDI Child exists

2. Opening a new MDI child from a MDI Child

3. How develop MDI application with child forms like VB MDI and Child forms

4. DataView filter not working in MDI child forms with reference to MDI parent DataSet

5. MFC MDI Multiple Views in Separate MDI Child Windows

6. How to create an MDI App without an initial MDI Child opening by the framework

7. Communication between MDI Parent and MDI Child

8. Change MDI child caption and Close child window button

9. Change MDI child caption and Close child window button

10. MDI inside an MDI window (preferably via MFC)

11. MDI inside MDI -

12. MDI inside MDI..

 

 
Powered by phpBB® Forum Software