Solved

Converting from SDI to MDI

Posted on 1998-03-06
1
792 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

695 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