Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRecursive CFtpFileFind Pin
User 127828-Feb-03 16:47
User 127828-Feb-03 16:47 
Generaltrying to shut down windows Pin
king_of_the_world8-Feb-03 15:53
king_of_the_world8-Feb-03 15:53 
GeneralRe: trying to shut down windows Pin
Abbas_Riazi8-Feb-03 17:39
professionalAbbas_Riazi8-Feb-03 17:39 
GeneralRe: trying to shut down windows Pin
king_of_the_world8-Feb-03 17:51
king_of_the_world8-Feb-03 17:51 
GeneralRe: trying to shut down windows Pin
Abbas_Riazi9-Feb-03 5:38
professionalAbbas_Riazi9-Feb-03 5:38 
QuestionHow do i use the overload operator= in a CObject? Pin
Anonymous8-Feb-03 15:49
Anonymous8-Feb-03 15:49 
AnswerRe: How do i use the overload operator= in a CObject? Pin
includeh109-Feb-03 2:39
includeh109-Feb-03 2:39 
GeneralMultiple document templates Pin
Perseus8-Feb-03 14:55
Perseus8-Feb-03 14:55 
I'm trying to create an MDI app with multiple document templates.
When I have just one AddDocTemplate the file/new creates a new window.

CMultiDocTemplate* pMaintainTemplate;
pMaintainTemplate = new CMultiDocTemplate(
IDR_GOOGLETYPE,
RUNTIME_CLASS(CGoogleDoc),
RUNTIME_CLASS(CChildFrame),
RUNTIME_CLASS(CGoogleView));
AddDocTemplate(pMaintainTemplate);

As soon as i add a second AddDocTemplate right below the above code in my InitInstance method the file/new does nothing. My second AddDocTemplate looks like this
CMultiDocTemplate* pProductionTemplate;
pProductionTemplate = new CMultiDocTemplate(
IDR_GOOGLETYPE,
RUNTIME_CLASS(cProductionDoc),
RUNTIME_CLASS(CChildFrame),
RUNTIME_CLASS(cProductionView));
AddDocTemplate(pProductionTemplate);

How can I get the file/new command to ask me which document type to create??

-perseus

GeneralRe: Multiple document templates Pin
Roger Allen10-Feb-03 6:40
Roger Allen10-Feb-03 6:40 
GeneralRe: Multiple document templates Pin
Perseus11-Feb-03 12:48
Perseus11-Feb-03 12:48 
GeneralSave File Dialog Creation Pin
orcblood8-Feb-03 14:01
orcblood8-Feb-03 14:01 
GeneralRe: Save File Dialog Creation Pin
Michael Dunn8-Feb-03 14:39
sitebuilderMichael Dunn8-Feb-03 14:39 
GeneralRe: Save File Dialog Creation Pin
orcblood9-Feb-03 7:01
orcblood9-Feb-03 7:01 
QuestionHow to get Key name from Vitrual-Key code? Pin
Aidman8-Feb-03 13:40
Aidman8-Feb-03 13:40 
AnswerRe: How to get Key name from Vitrual-Key code? Pin
KaЯl9-Feb-03 21:40
KaЯl9-Feb-03 21:40 
GeneralRe: How to get Key name from Vitrual-Key code? Pin
Aidman10-Feb-03 10:23
Aidman10-Feb-03 10:23 
GeneralRe: How to get Key name from Vitrual-Key code? Pin
KaЯl11-Feb-03 4:53
KaЯl11-Feb-03 4:53 
GeneralRe: How to get Key name from Vitrual-Key code? Pin
Aidman11-Feb-03 8:50
Aidman11-Feb-03 8:50 
GeneralRe: How to get Key name from Vitrual-Key code? Pin
KaЯl11-Feb-03 21:39
KaЯl11-Feb-03 21:39 
GeneralRe: How to get Key name from Vitrual-Key code? Pin
Aidman12-Feb-03 5:26
Aidman12-Feb-03 5:26 
GeneralRe: How to get Key name from Vitrual-Key code? Pin
KaЯl12-Feb-03 5:32
KaЯl12-Feb-03 5:32 
GeneralWM_NCHITTEST in Dialog Box Pin
Silmeron8-Feb-03 12:48
Silmeron8-Feb-03 12:48 
GeneralRe: WM_NCHITTEST in Dialog Box Pin
Nish Nishant8-Feb-03 13:29
sitebuilderNish Nishant8-Feb-03 13:29 
GeneralRe: WM_NCHITTEST in Dialog Box Pin
Silmeron8-Feb-03 16:04
Silmeron8-Feb-03 16:04 
GeneralError displaying CFrameWnd Pin
raner8-Feb-03 8:00
raner8-Feb-03 8:00 

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.