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
Solved

Converting from SDI to MDI

Posted on 1998-03-06
1
778 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adapt this command to show who installed 29 111
if loop in java 3 151
VBA "SendKeys" Syntax for Multiple Keystrokes 7 116
firstChar challenge 13 119
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

765 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