Click here to Skip to main content
16,007,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ATL doubt Pin
Christian Graus2-Mar-02 21:41
protectorChristian Graus2-Mar-02 21:41 
GeneralRe: ATL doubt Pin
Nish Nishant2-Mar-02 22:31
sitebuilderNish Nishant2-Mar-02 22:31 
GeneralRe: ATL doubt Pin
Christian Graus2-Mar-02 22:42
protectorChristian Graus2-Mar-02 22:42 
GeneralRe: ATL doubt Pin
Nish Nishant2-Mar-02 23:12
sitebuilderNish Nishant2-Mar-02 23:12 
GeneralRe: ATL doubt Pin
pba_3-Mar-02 2:52
pba_3-Mar-02 2:52 
GeneralRe: ATL doubt Pin
pba_3-Mar-02 3:13
pba_3-Mar-02 3:13 
Questionhow to new a doc in MDI application in programme?? Pin
benben2-Mar-02 17:40
benben2-Mar-02 17:40 
AnswerRe: how to new a doc in MDI application in programme?? Pin
Roger Allen4-Mar-02 1:16
Roger Allen4-Mar-02 1:16 
If you have a pointer to the CDocTemplate for the document, you can create a new instance of it using

pDocTemplate->OpenDocumentFile(NULL) ;

If you need to do this from an existing doucment:

pDocTemplate = GetDocTemplate() ;
pDocTemplate->OpenDocumentFile(NULL) ;


or from anywhere else

CDocManager *pDocMan = AfxGetApp()->m_pDocManager ;
POSITION pos ;

pos = pDocMan->GetFirstDocTemplatePosition() ;
// note that if you have multiple doc types, you will have to find the correct one
// by iterating completely through the doc template list to the correct one
CDocTemplate *pDocTemplate = pDocMan->GetNextDocTemplate(pos) ;
pDocTemplate->OpenDocumentFile(NULL) ;




Roger Allen
Sonork 100.10016

If I'm not breathing, I'm either dead or holding my breath.
A fool jabbers, while a wise man listens. But is he so wise to listen to the fool?
GeneralHelp writing a game tree for tictactoe Pin
John Cruz2-Mar-02 17:02
John Cruz2-Mar-02 17:02 
GeneralRe: Help writing a game tree for tictactoe Pin
alex.barylski2-Mar-02 18:32
alex.barylski2-Mar-02 18:32 
GeneralRe: Help writing a game tree for tictactoe Pin
John Cruz2-Mar-02 18:50
John Cruz2-Mar-02 18:50 
GeneralRe: Help writing a game tree for tictactoe Pin
alex.barylski2-Mar-02 23:20
alex.barylski2-Mar-02 23:20 
GeneralRe: Help writing a game tree for tictactoe Pin
John Cruz3-Mar-02 0:53
John Cruz3-Mar-02 0:53 
GeneralKeyboard delay time Pin
PJ Arends2-Mar-02 16:29
professionalPJ Arends2-Mar-02 16:29 
GeneralRe: Keyboard delay time Pin
Nish Nishant2-Mar-02 17:37
sitebuilderNish Nishant2-Mar-02 17:37 
GeneralRe: Keyboard delay time Pin
Michael Dunn2-Mar-02 18:59
sitebuilderMichael Dunn2-Mar-02 18:59 
GeneralRe: Keyboard delay time Pin
PJ Arends2-Mar-02 19:28
professionalPJ Arends2-Mar-02 19:28 
GeneralRe: Keyboard delay time Pin
Nish Nishant2-Mar-02 19:24
sitebuilderNish Nishant2-Mar-02 19:24 
GeneralHelp with Array Sort Pin
Loli102-Mar-02 10:41
Loli102-Mar-02 10:41 
GeneralRe: Help with Array Sort Pin
Anders Molin2-Mar-02 11:37
professionalAnders Molin2-Mar-02 11:37 
GeneralRe: Help with Array Sort Pin
Tim Smith2-Mar-02 11:48
Tim Smith2-Mar-02 11:48 
GeneralRe: Help with Array Sort Pin
Nish Nishant2-Mar-02 15:06
sitebuilderNish Nishant2-Mar-02 15:06 
GeneralCListCtrl and Row Height Pin
NodeX2-Mar-02 9:41
NodeX2-Mar-02 9:41 
GeneralRe: CListCtrl and Row Height Pin
alex.barylski2-Mar-02 16:06
alex.barylski2-Mar-02 16:06 
GeneralRe: CListCtrl and Row Height Pin
NodeX2-Mar-02 22:59
NodeX2-Mar-02 22:59 

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.