Click here to Skip to main content
16,004,924 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ATL COM interfaces Pin
Rob Wainwright19-Oct-00 8:35
Rob Wainwright19-Oct-00 8:35 
GeneralEQ Pin
Eq18-Oct-00 22:39
Eq18-Oct-00 22:39 
GeneralInernetGetConnectedState Pin
Sylvain Demers18-Oct-00 11:08
sussSylvain Demers18-Oct-00 11:08 
QuestionSetEnvironmentVariable not working ? Pin
Dennis18-Oct-00 10:32
Dennis18-Oct-00 10:32 
QuestionHow to make an MFC application in a service Pin
Xzyeena18-Oct-00 9:40
sussXzyeena18-Oct-00 9:40 
AnswerRe: How to make an MFC application in a service Pin
Tim Deveaux18-Oct-00 11:32
Tim Deveaux18-Oct-00 11:32 
AnswerRe: How to make an MFC application in a service Pin
frydaysoft19-Oct-00 8:03
sussfrydaysoft19-Oct-00 8:03 
QuestionHow to choose between two views on Form-based MDI? Pin
Member 1176625718-Oct-00 9:26
Member 1176625718-Oct-00 9:26 
Hi all,
I have a problem that should have a simple solution. I have an MDI FormView-based app and it has two button on the toolbar where the user can choose to create a new form-based document version 1 or version 2.
Therefore I think I have 2 issues:
one, how to set the global variable after either clicking button 1 or 2. What function should I call after setting the var?
void CMainFrame::OnFileNew2()
{
view = 2; // set the global var
... // what function should be here to continue creating new doc?
}

two, how to choose the view based on the global var.

Can anyone help me? or does anyone have a sample code that just does that?
Thanks a lot in advance.
Generaliexplore Pin
valec18-Oct-00 8:44
valec18-Oct-00 8:44 
GeneralRe: iexplore Pin
Michael Dunn18-Oct-00 15:59
sitebuilderMichael Dunn18-Oct-00 15:59 
GeneralDialog in MFC Pin
Frank L.18-Oct-00 8:36
Frank L.18-Oct-00 8:36 
GeneralRe: Dialog in MFC Pin
Klaass197618-Oct-00 8:57
Klaass197618-Oct-00 8:57 
GeneralCustomize IE Pin
Shellmind18-Oct-00 6:29
Shellmind18-Oct-00 6:29 
QuestionHow to export settings in registry? Pin
Eq18-Oct-00 6:27
Eq18-Oct-00 6:27 
AnswerRe: How to export settings in registry? Pin
Michael Dunn18-Oct-00 6:51
sitebuilderMichael Dunn18-Oct-00 6:51 
GeneralRegConnectRegistry and IO Pending error Pin
Klaass197618-Oct-00 6:00
Klaass197618-Oct-00 6:00 
GeneralGeneric text mapping function for atof() Pin
Chris Vischer18-Oct-00 3:24
Chris Vischer18-Oct-00 3:24 
GeneralRe: Generic text mapping function for atof() Pin
Serge Velikevitch18-Oct-00 4:31
sussSerge Velikevitch18-Oct-00 4:31 
GeneralRe: Generic text mapping function for atof() Pin
Chris Vischer20-Oct-00 4:41
Chris Vischer20-Oct-00 4:41 
GeneralWriting to memory Pin
Bas Scholtemeijer18-Oct-00 1:17
sussBas Scholtemeijer18-Oct-00 1:17 
GeneralRe: Writing to memory Pin
frydaysoft18-Oct-00 5:59
sussfrydaysoft18-Oct-00 5:59 
QuestionHelp? Anyone? Pin
Matt17-Oct-00 18:02
Matt17-Oct-00 18:02 
AnswerRe: Help? Anyone? Pin
Christian20-Oct-00 15:13
Christian20-Oct-00 15:13 
GeneralVertical rebar problems (CReBar) Pin
John Otken17-Oct-00 11:01
John Otken17-Oct-00 11:01 
GeneralI want opinions/views Pin
#realJSOP17-Oct-00 2:04
professional#realJSOP17-Oct-00 2:04 

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.