Click here to Skip to main content
16,005,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CEdit style Pin
PJ Arends30-Jul-02 0:28
professionalPJ Arends30-Jul-02 0:28 
GeneralRe: CEdit style Pin
Renjith Ramachandran30-Jul-02 0:49
Renjith Ramachandran30-Jul-02 0:49 
GeneralQuestion about auto_ptr Pin
pankajdaga29-Jul-02 23:33
pankajdaga29-Jul-02 23:33 
GeneralRe: Question about auto_ptr Pin
Daniel Lohmann30-Jul-02 2:25
Daniel Lohmann30-Jul-02 2:25 
GeneralMulti-SDI with MFC Pin
Kirill Kovalenko29-Jul-02 22:56
Kirill Kovalenko29-Jul-02 22:56 
GeneralRe: Multi-SDI with MFC Pin
Alexandru Savescu29-Jul-02 23:29
Alexandru Savescu29-Jul-02 23:29 
GeneralRe: Multi-SDI with MFC Pin
Kirill Kovalenko29-Jul-02 23:38
Kirill Kovalenko29-Jul-02 23:38 
GeneralRe: Multi-SDI with MFC Pin
[James Pullicino]30-Jul-02 2:43
[James Pullicino]30-Jul-02 2:43 
Create an SDI app with MFC App Wizard.
Go to you app init instance and look for this code:

pDocTemplate = new CSingleDocTemplate(<br />
    IDR_MAINFRAME,<br />
    RUNTIME_CLASS(CMSDIDoc),<br />
    RUNTIME_CLASS(CMainFrame),       // main SDI frame window<br />
    RUNTIME_CLASS(CMSDIView));<br />
AddDocTemplate(pDocTemplate);


Make a copy of that code and paste it right below it. That should be enough to get you started. Your code should now look like this:

<br />
	// Register the application's document templates.  Document templates<br />
	//  serve as the connection between documents, frame windows and views.<br />
<br />
	CSingleDocTemplate* pDocTemplate;<br />
	pDocTemplate = new CSingleDocTemplate(<br />
		IDR_MAINFRAME,<br />
		RUNTIME_CLASS(CMSDIDoc),<br />
		RUNTIME_CLASS(CMainFrame),       // main SDI frame window<br />
		RUNTIME_CLASS(CMSDIView));<br />
	AddDocTemplate(pDocTemplate);<br />
<br />
	pDocTemplate = new CSingleDocTemplate(<br />
		IDR_MAINFRAME,<br />
		RUNTIME_CLASS(CMSDIDoc),<br />
		RUNTIME_CLASS(CMainFrame),       // main SDI frame window<br />
		RUNTIME_CLASS(CMSDIView));<br />
	AddDocTemplate(pDocTemplate);<br />
<br />
<br />
	// Parse command line for standard shell commands, DDE, file open<br />
	CCommandLineInfo cmdInfo;<br />
	ParseCommandLine(cmdInfo);<br />
<br />


James

Drinking In The Sun
Forgot Password?
GeneralRe: Multi-SDI with MFC Pin
Kirill Kovalenko30-Jul-02 3:30
Kirill Kovalenko30-Jul-02 3:30 
GeneralRe: Multi-SDI with MFC Pin
Giles30-Jul-02 7:47
Giles30-Jul-02 7:47 
GeneralHELP!!!! ActiveX in Visual C++ Pin
mistika29-Jul-02 22:51
mistika29-Jul-02 22:51 
GeneralRe: HELP!!!! ActiveX in Visual C++ Pin
KingsGambit30-Jul-02 6:29
KingsGambit30-Jul-02 6:29 
QuestionHow to change value of member within object within CArray ? Pin
rsg_dj29-Jul-02 22:46
rsg_dj29-Jul-02 22:46 
Answerarr.GetAt(...).x=20 Pin
Anonymous29-Jul-02 22:54
Anonymous29-Jul-02 22:54 
AnswerRe: How to change value of member within object within CArray ? Pin
Alexandru Savescu29-Jul-02 23:34
Alexandru Savescu29-Jul-02 23:34 
GeneralRe: How to change value of member within object within CArray ? Pin
Raphael Kindt30-Jul-02 0:05
Raphael Kindt30-Jul-02 0:05 
GeneralRe: How to change value of member within object within CArray ? Pin
Alexandru Savescu30-Jul-02 0:31
Alexandru Savescu30-Jul-02 0:31 
GeneralRe: How to change value of member within object within CArray ? Pin
Raphael Kindt30-Jul-02 1:06
Raphael Kindt30-Jul-02 1:06 
AnswerRe: How to change value of member within object within CArray ? Pin
Christian Graus30-Jul-02 2:47
protectorChristian Graus30-Jul-02 2:47 
GeneralStandard Radio Buttons Pin
silverspoon29-Jul-02 22:10
silverspoon29-Jul-02 22:10 
GeneralRe: Standard Radio Buttons Pin
PJ Arends30-Jul-02 0:34
professionalPJ Arends30-Jul-02 0:34 
GeneralRe: Standard Radio Buttons Pin
silverspoon30-Jul-02 1:49
silverspoon30-Jul-02 1:49 
GeneralRe: Standard Radio Buttons Pin
PJ Arends30-Jul-02 5:52
professionalPJ Arends30-Jul-02 5:52 
GeneralTrouble with dialogs/views //HELP REALLY NEEDED Pin
klm29-Jul-02 21:56
klm29-Jul-02 21:56 
GeneralRe: Trouble with dialogs/views //HELP REALLY NEEDED Pin
perlmunger30-Jul-02 9:26
perlmunger30-Jul-02 9:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.