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!

MFC AppWizard, MDI Application

Status
Not open for further replies.

Dolman

Programmer
Feb 3, 2002
8
GB
Hi, I have just started writing an application with the MFC AppWizard(exe), to create a MDI application, but I have no idea how to add objects to the Child window. The object in question that I am adding is an EditBox, so that plane text can be loaded and saved in a manor similar to any MDI word processor package.

Can anyone help me please?
 
Hi

If you only need to do this, than use the CFormView, add the required control(s) and the class will handle ( almost) everything for you...

Thierry
 
Success, after some experimentation.
I had to add a new CFormView class to the application, and then remove the default CChildFrame(CMDIChildWnd) class from the doc template registration part of the application, as I could not find a way of adding the edit box directly to the CChildFrame class as it had no dialog box to edit.

If I have gone about this in a round about way please let me know.

Thank you very much for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top