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

C / C++ / MFC

 
GeneralRe: Adding Bars, Buttons, Menu to the IE Pin
Masaaki Onishi23-May-00 5:12
Masaaki Onishi23-May-00 5:12 
General(Hopefully) a simple question on classes and inheritance. Pin
Erich Ruth22-May-00 11:54
Erich Ruth22-May-00 11:54 
GeneralRe: (Hopefully) a simple question on classes and inheritance. Pin
Masaaki Onishi22-May-00 13:23
Masaaki Onishi22-May-00 13:23 
GeneralRe: (Hopefully) a simple question on classes and inheritance. Pin
James Curran26-May-00 8:27
James Curran26-May-00 8:27 
GeneralRe: I already noticed this. Pin
Masaaki Onishi26-May-00 11:51
Masaaki Onishi26-May-00 11:51 
GeneralRe: (Hopefully) a simple question on classes and inheritance. Pin
Chris Meech23-May-00 7:04
Chris Meech23-May-00 7:04 
GeneralRe: (Hopefully) a simple question on classes and inheritance. Pin
Member 432125-May-00 11:28
Member 432125-May-00 11:28 
GeneralUse a Text file to open my doc in a CRichEditView Pin
Olivier Cheneson22-May-00 7:11
sussOlivier Cheneson22-May-00 7:11 
hi,

I have a MDI app with a CRichEditView and Doc. I would like to know how I can everytime i create a new document open a Text File that i created.

This text file is a kinda report where i fill later on.
I use this text as a Template for my file.

Here is my code

void CMainFrame::OnFileNewProject()
{

// TODO: Add your command handler code here
CNewProjectDlg dlg;

if (dlg.DoModal() == IDOK)
{
if(!dlg.m_strProjectName.IsEmpty())
{

PrepareEnvironment(dlg.m_strProject, dlg.m_strProjectName );


//Update Project View
m_pDocProject->AddItem2View(dlg.m_strProjectName);

//Create a new document
CCosmoSQAApp* pApp = (CCosmoSQAApp*)AfxGetApp();
pApp->m_pDocTemplate->OpenDocumentFileNULL, TRUE);


}
}

}



Thanks
olivier



QuestionNew browser as child window of existing one? Pin
mahesh22-May-00 2:40
mahesh22-May-00 2:40 
AnswerRe: New browser as child window of existing one? Pin
Erik Thompson22-May-00 12:12
sitebuilderErik Thompson22-May-00 12:12 
GeneralRe: New browser as child window of existing one? Pin
mahesh23-May-00 2:36
mahesh23-May-00 2:36 
GeneralRe: New browser as child window of existing one? Pin
Brian Hart25-Jun-00 13:30
Brian Hart25-Jun-00 13:30 
GeneralInternet Priority level Pin
Buck21-May-00 12:04
Buck21-May-00 12:04 
GeneralRe: Internet Priority level Pin
Arvind2321-May-00 20:08
Arvind2321-May-00 20:08 
GeneralRe: Internet Priority level Pin
Buck22-May-00 11:16
Buck22-May-00 11:16 
GeneralActiveX/COM registration problem. Pin
Member 237521-May-00 5:34
Member 237521-May-00 5:34 
GeneralRe: ActiveX/COM registration problem. Pin
Alex Gorev23-May-00 3:58
Alex Gorev23-May-00 3:58 
Questionhow to get the message when the user clicked the uparrow? Pin
Member 456620-May-00 16:29
Member 456620-May-00 16:29 
AnswerRe: how to get the message when the user clicked the uparrow? Pin
pr0digy122-May-00 20:44
pr0digy122-May-00 20:44 
AnswerRe: how to get the message when the user clicked the uparrow? Pin
pr0digy122-May-00 20:44
pr0digy122-May-00 20:44 
AnswerRe: Subclass the control or use PreTranslateMessage(...) function. Pin
Masaaki Onishi23-May-00 13:00
Masaaki Onishi23-May-00 13:00 
AnswerRe: how to get the message when the user clicked the uparrow? Pin
Member 432125-May-00 11:44
Member 432125-May-00 11:44 
Generalsplitter with statusbar Pin
Darren Schroeder20-May-00 3:36
Darren Schroeder20-May-00 3:36 
GeneralRe: splitter with statusbar Pin
imsniper23-May-00 22:24
imsniper23-May-00 22:24 
QuestionHow to disable the menu item in a dialog ? Pin
Mani19-May-00 22:36
Mani19-May-00 22:36 

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.