Solved

Converting from SDI to MDI

Posted on 1998-03-06
1
752 Views
Last Modified: 2013-11-20
Does there exist a simple way (tool) to convert an SDI based program into a MDI based program.
0
Comment
Question by:dataman
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 50 total points
ID: 1316809
Microsoft provides no such tool.

You can convert from SDI to MDI by:

1) Adding your own CMDIChildWnd-derived class. (You can copy the one from a blank AppWizard app.)

2) Changing your CMainFrame class to derive from CMDIFrameWnd instead of CFrameWnd.

3) Changing your InitInstance() code to register a doc template based on your CMDIChildWnd-derived object instead of your plain object.

4) Hook up code to load the main frame:

CMainFrame* pMainFrame = new CMainFrame;
if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
   return FALSE;
m_pMainWnd = pMainFrame;

5) Add a new menu resource for the frame

6) add the appropriate menu items to the document template window style.

.B ekiM
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Powershell based monitoring system 2 127
Error on moodle after upgrade 3 106
no14 challenge 14 57
wait notify demo infinite loop 3 81
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now