文件名称:FormTest
- 所属分类:
- 图片显示浏览
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 34kb
- 下载次数:
- 0次
- 提 供 者:
- 孙*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在fr a mework中显示一个View。通过菜单或按钮切换成不同的view。假设有三种view: CViewA, CViewB,CViewC。用三个常数表示他们不显示时的control ID.
enum eView {ViewA, ViewB, ViewC}
在CMainfr a me 加上下面一个函数就可以实现不同窗口的切换了。很易懂,唯一没有说的就是CCreateContext context,这是每次Create一个view时必须设定的。其实也就是m_pCurrentDoc这个指向当前document class的指针需要设定,其它的取默认值就可以了。-fr a mework 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 CMainfr a me 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.
enum eView {ViewA, ViewB, ViewC}
在CMainfr a me 加上下面一个函数就可以实现不同窗口的切换了。很易懂,唯一没有说的就是CCreateContext context,这是每次Create一个view时必须设定的。其实也就是m_pCurrentDoc这个指向当前document class的指针需要设定,其它的取默认值就可以了。-fr a mework 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 CMainfr a me 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.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
FormTest
........\FormTest.aps
........\FormTest.cpp
........\FormTest.dsp
........\FormTest.dsw
........\FormTest.h
........\FormTest.opt
........\FormTest.plg
........\FormTest.rc
........\FormTestDoc.cpp
........\FormTestDoc.h
........\MainFrm.cpp
........\MainFrm.h
........\ReadMe.txt
........\res
........\...\FormTest.rc2
........\resource.h
........\StdAfx.cpp
........\StdAfx.h
........\ViewA.cpp
........\ViewA.h
........\ViewB.cpp
........\ViewB.h
........\ViewC.cpp
........\ViewC.h
........\程序说明.txt
........\FormTest.aps
........\FormTest.cpp
........\FormTest.dsp
........\FormTest.dsw
........\FormTest.h
........\FormTest.opt
........\FormTest.plg
........\FormTest.rc
........\FormTestDoc.cpp
........\FormTestDoc.h
........\MainFrm.cpp
........\MainFrm.h
........\ReadMe.txt
........\res
........\...\FormTest.rc2
........\resource.h
........\StdAfx.cpp
........\StdAfx.h
........\ViewA.cpp
........\ViewA.h
........\ViewB.cpp
........\ViewB.h
........\ViewC.cpp
........\ViewC.h
........\程序说明.txt