How to choose between two views on Form-based MDI?
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
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.