Click here to Skip to main content
16,012,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWav in Resource DLL: Memory problem Pin
Eric Tremblay5-Dec-00 4:23
Eric Tremblay5-Dec-00 4:23 
GeneralGet user right to access a file in NT, without user password Pin
5-Dec-00 2:36
suss5-Dec-00 2:36 
Generalreading bytes directly from memory Pin
5-Dec-00 2:02
suss5-Dec-00 2:02 
GeneralRe: reading bytes directly from memory Pin
Michael Dunn5-Dec-00 9:28
sitebuilderMichael Dunn5-Dec-00 9:28 
GeneralRe: reading bytes directly from memory Pin
Suha Aktan8-Dec-00 10:07
Suha Aktan8-Dec-00 10:07 
GeneralActiveX persistance Pin
Serge_l5-Dec-00 1:55
Serge_l5-Dec-00 1:55 
GeneralCMDIFrameWnd problems Pin
4-Dec-00 23:33
suss4-Dec-00 23:33 
GeneralRe: CMDIFrameWnd problems Pin
Christian Graus5-Dec-00 0:16
protectorChristian Graus5-Dec-00 0:16 
In your CWinApp derived class ( the one that ends in app ), override OnFileNew. Put this there:

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

Only, I presume you'll change the Document classname as appropriate. Smile | :) Smile | :) Smile | :)

Christian

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

To understand recursion, we must first understand recursion.
GeneralA MIDI Timer Pin
Andy Monk4-Dec-00 22:50
Andy Monk4-Dec-00 22:50 
GeneralRe: A MIDI Timer Pin
Christian Graus5-Dec-00 0:17
protectorChristian Graus5-Dec-00 0:17 
GeneralRedistributables when using ODBC Microsoft Access Pin
Wolfram Steinke4-Dec-00 22:16
Wolfram Steinke4-Dec-00 22:16 
GeneralRedistributables when using ODBC Microsoft Access Pin
Wolfram Steinke4-Dec-00 22:16
Wolfram Steinke4-Dec-00 22:16 
Generalread from memory Pin
4-Dec-00 12:54
suss4-Dec-00 12:54 
QuestionAnybody know how to Play single note in MIDI??? Pin
4-Dec-00 8:47
suss4-Dec-00 8:47 
AnswerRe: Anybody know how to Play single note in MIDI??? Pin
Christian Graus4-Dec-00 10:19
protectorChristian Graus4-Dec-00 10:19 
AnswerRe: Anybody know how to Play single note in MIDI??? Pin
.::RockNix::.15-Jan-01 3:27
.::RockNix::.15-Jan-01 3:27 
GeneralCompile my project without symbols Pin
4-Dec-00 7:11
suss4-Dec-00 7:11 
GeneralRe: Compile my project without symbols Pin
4-Dec-00 8:01
suss4-Dec-00 8:01 
GeneralSDK Pin
3-Dec-00 23:05
suss3-Dec-00 23:05 
GeneralRe: SDK Pin
Christian Graus4-Dec-00 10:22
protectorChristian Graus4-Dec-00 10:22 
GeneralRe: SDK Pin
Christian Graus4-Dec-00 10:23
protectorChristian Graus4-Dec-00 10:23 
GeneralCalendar Control needed Pin
Serge_l3-Dec-00 22:49
Serge_l3-Dec-00 22:49 
GeneralRe: Calendar Control needed Pin
NormDroid3-Dec-00 23:19
professionalNormDroid3-Dec-00 23:19 
GeneralRe: Calendar Control needed Pin
Brendan Tregear5-Dec-00 13:23
Brendan Tregear5-Dec-00 13:23 
GeneralWindows Message Mapping Pin
3-Dec-00 7:38
suss3-Dec-00 7:38 

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.