
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?