Discussion:
how to Convert SDI Application into MDI Application in MFC
(too old to reply)
Tarandeep
2006-08-29 19:01:40 UTC
Permalink
hi All

I have a SDI Application and i want to convert this Application to MDI
Application.
please anyone give me solution for it


Thanx
Tarandeep Singh
A1 Technology
Chandigarh
***@a1technology.com
AliR
2006-08-29 20:51:37 UTC
Permalink
The easiest thing to do is create a blank MDI application using the wizard
and see what the differences are.

Look into your apps InitInstance method. A SDI app uses CSingleDocTemplate
where a MDI app uses CMultiDocTemplate. The Frame parameter of this class
is CMainFrame for SDI apps, and CChildFrame for MDI apps.

The main frame class for SDI is a CFrameWnd and for MDI it is CMDIFrameWnd.

MDI apps have CMDIChildWnd as the frame for the views, where as SDI apps use
the main frame.

AliR.
Post by Tarandeep
hi All
I have a SDI Application and i want to convert this Application to MDI
Application.
please anyone give me solution for it
Thanx
Tarandeep Singh
A1 Technology
Chandigarh
Ajay Kalra
2006-08-29 23:54:47 UTC
Permalink
I would echo what AliR has mentioned. Start with a new app and transfer
you logic to the new project. Changing class names would be more
painful.

---
Ajay
Post by Tarandeep
hi All
I have a SDI Application and i want to convert this Application to MDI
Application.
please anyone give me solution for it
Thanx
Tarandeep Singh
A1 Technology
Chandigarh
Loading...