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

how do i intergrate different type of windows in one program

Status
Not open for further replies.

ArvindKumar17

Programmer
Jan 7, 2003
13
MU
hi friends,
I have a number of windows of different type but they are all derived from the same base class CMDIChild Window. I need to intergrate all the different windows such that I can call the different window from one place , say menu by clicking the different options.

regards
-arvind
 
You can make a collection class, containing pointers to those windows (and maybe even derived from CMenu, so activating can be done from inside the collection).
Greetings,
Rick
 
Hi friends,
I have an MFC application. I have some codes that should be run before any other

code are executed. I would like to know where do I exactly put it.
I am thinking about the InitInstance() function of the Application class. It might just

prove to be the correct place to put my code.
Please let me u opinion.

regards
 
If you don't want to dig into the MFC stuff, that is the first place of the app where you can get control (well, actually the very first place would be in the constructor of the CWinapp class...).
Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top