Click here to Skip to main content
16,014,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: String Conversions... Pin
12-Feb-01 1:14
suss12-Feb-01 1:14 
GeneralHello, i need some advice. Pin
11-Feb-01 9:16
suss11-Feb-01 9:16 
GeneralRe: Hello, i need some advice. Pin
Christian Graus12-Feb-01 12:48
protectorChristian Graus12-Feb-01 12:48 
GeneralMicrosoft SAPI (tts) problem Pin
Vickie11-Feb-01 8:32
Vickie11-Feb-01 8:32 
GeneralRe: Microsoft SAPI (tts) problem Pin
ov13-Feb-01 21:43
ov13-Feb-01 21:43 
GeneralCRebar like MS Internet Explorer Pin
Sjoerd van Leent10-Feb-01 23:54
Sjoerd van Leent10-Feb-01 23:54 
GeneralMultiDoc Pin
Starodubtsev Sergey10-Feb-01 20:26
Starodubtsev Sergey10-Feb-01 20:26 
GeneralRe: MultiDoc Pin
Christian Graus10-Feb-01 21:56
protectorChristian Graus10-Feb-01 21:56 
I presume you're asking if you have more than one possible document type when you click 'new' it asks what sort you want to create ? If so, in your CWinApp derived class, override OnFileNew to do this

// Force use of first template as it does not matter
POSITION POS = GetFirstDocTemplatePosition();
CDocTemplate* pTemp = GetNextDocTemplate(POS);
CYOURCLASSDoc* pDoc = (CYOURCLASSDoc*) pTemp->OpenDocumentFile(NULL);

This forces it to use the first template, you'll need to change that by the no. of times you call GetNextDocTemplate if needed.



Christian

The content of this post is not necessarily the opinion of my yadda yadda yadda.

To understand recursion, we must first understand recursion.
GeneralCreate EXE files during runtime Pin
Sachin10-Feb-01 14:36
Sachin10-Feb-01 14:36 
GeneralRe: Create EXE files during runtime Pin
l a u r e n11-Feb-01 22:16
l a u r e n11-Feb-01 22:16 
QuestionTrapping HTML w/out proxy??? Pin
10-Feb-01 13:32
suss10-Feb-01 13:32 
AnswerRe: Trapping HTML w/out proxy??? Pin
Michael Dunn10-Feb-01 17:07
sitebuilderMichael Dunn10-Feb-01 17:07 
AnswerRe: Trapping HTML w/out proxy??? Pin
11-Feb-01 11:05
suss11-Feb-01 11:05 
GeneralTransparent CStatic Pin
Tim Jones10-Feb-01 6:10
Tim Jones10-Feb-01 6:10 
GeneralRe: Transparent CStatic Pin
Joe Moldovan10-Feb-01 13:07
Joe Moldovan10-Feb-01 13:07 
General"Don't ask me this again" Pin
10-Feb-01 5:45
suss10-Feb-01 5:45 
GeneralRe: "Don't ask me again" Pin
Daniel Ferguson12-Feb-01 9:25
Daniel Ferguson12-Feb-01 9:25 
GeneralRe: Pin
12-Feb-01 13:51
suss12-Feb-01 13:51 
GeneralSolving leaks Pin
Joe Moldovan10-Feb-01 5:03
Joe Moldovan10-Feb-01 5:03 
GeneralRe: Solving leaks Pin
NormDroid10-Feb-01 5:47
professionalNormDroid10-Feb-01 5:47 
QuestionWebsites? Pin
10-Feb-01 4:54
suss10-Feb-01 4:54 
AnswerRe: Websites? Pin
10-Feb-01 11:03
suss10-Feb-01 11:03 
GeneralHelp..CEdit ( enabling and text selection ) Pin
10-Feb-01 4:47
suss10-Feb-01 4:47 
QuestionWhat is the windows message no. 0x101E is for ? Pin
winyu9-Feb-01 20:01
winyu9-Feb-01 20:01 
AnswerRe: What is the windows message no. 0x101E is for ? Pin
Erik Funkenbusch12-Feb-01 13:11
Erik Funkenbusch12-Feb-01 13:11 

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.