Introduction - If you have any usage issues, please Google them yourself
Framework shown in a View. Through the menu or button to switch into a different view. Assuming there are three view: CViewA, CViewB, CViewC. Three constants that they do not show when the control ID.enum eView (ViewA, ViewB, ViewC) to add the following in CMainFrame can realize a function of switching a different window. Very easy to understand, the only did not say is CCreateContext context, it is per-Create a view must be set. In fact, that is, m_pCurrentDoc this point to the current document class needs to set the pointer, the other from the default value of it.
Packet : 93317467formtest.rar filelist
FormTest\FormTest.aps
FormTest\FormTest.cpp
FormTest\FormTest.dsp
FormTest\FormTest.dsw
FormTest\FormTest.h
FormTest\FormTest.plg
FormTest\FormTest.rc
FormTest\FormTestDoc.cpp
FormTest\FormTestDoc.h
FormTest\MainFrm.h
FormTest\ReadMe.txt
FormTest\res\FormTest.ico
FormTest\res\FormTest.rc2
FormTest\res\FormTestDoc.ico
FormTest\res\Toolbar.bmp
FormTest\resource.h
FormTest\StdAfx.cpp
FormTest\StdAfx.h
FormTest\ViewA.cpp
FormTest\ViewA.h
FormTest\ViewB.cpp
FormTest\ViewB.h
FormTest\ViewC.cpp
FormTest\ViewC.h
FormTest\程序说明.txt
FormTest\MainFrm.cpp
FormTest\FormTest.opt
FormTest\res
FormTest