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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create MDI application (not use appwizard)

Status
Not open for further replies.

niponph

Programmer
May 8, 2002
1
US
i would like to know how to create MDI application by not using appwizard
i have declare class following code below

class CWin : public CMDIFrameWnd{
public:
CWin();
~CWin();
};
class CWinchild : public CMDIChildWnd{
public:
CWinchild();
~CWinchild();
};
CWin::CWin(){
Create(NULL,"Surface Reconstuction Program",WS_OVERLAPPEDWINDOW|WS_MAXIMIZE,CRect(0,0,800,600),NULL,MAKEINTRESOURCE(IDR_MENU));
}
BOOL CApp::InitInstance(){
m_pMainWnd=new CWin();
m_pMainWnd->ShowWindow(SW_SHOWMAXIMIZED);
m_pMainWnd->UpdateWindow();
return TRUE;
}
class CApp : public CWinApp{
public:
virtual BOOL InitInstance();
};
CApp theapp;

How can i do next ?
or Do you have code sample for study?

thanks you very much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top