文件名称:view2ctrl
- 所属分类:
- 界面编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 277kb
- 下载次数:
- 0次
- 提 供 者:
- weir****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Convert CHtmlView to CHtmlCtrl
CHtmlView和我们最终生成的CHtmlCtrl到底有什么区别?
其实,区别仅仅是它们被使用的方法不同.控件通常是对话框里的子窗口---当然你可以把它作为
任何窗口的子窗口.然而View却是专门为了实现MFC 文档视图结构而设计的.一个View有一个指向
Document的指针并且被固定在一个特别的窗口里---人称:框架窗口(Cfr a meWnd).
对于Document来说,CView是它可以从形态上被表现的场作.但,指向Document的指针
m_pDocument可能是NULL,所以每当我们在View里处理Document的时候,这么做是明智的:
-Convert CHtmlView to CHtmlCtrlCHtmlView with us in the end the final generated CHtmlCtrl What is the difference? In fact, the distinction is that they only be used in different ways. Control is usually a sub-dialog window- of course you can put it as a child window of any window. However View it is specialized in order to realize the structure of the document view MFC designed. a View has a point to Document pointer and was fixed in a special window- known as: fr a me window (Cfr a meWnd). For Document for, CView is that it can from the morphology was the performance of the market for. However, indicators point to Document the m_pDocument may be NULL, so whenever we deal with in the View Lane Document when it is wise to do so:
CHtmlView和我们最终生成的CHtmlCtrl到底有什么区别?
其实,区别仅仅是它们被使用的方法不同.控件通常是对话框里的子窗口---当然你可以把它作为
任何窗口的子窗口.然而View却是专门为了实现MFC 文档视图结构而设计的.一个View有一个指向
Document的指针并且被固定在一个特别的窗口里---人称:框架窗口(Cfr a meWnd).
对于Document来说,CView是它可以从形态上被表现的场作.但,指向Document的指针
m_pDocument可能是NULL,所以每当我们在View里处理Document的时候,这么做是明智的:
-Convert CHtmlView to CHtmlCtrlCHtmlView with us in the end the final generated CHtmlCtrl What is the difference? In fact, the distinction is that they only be used in different ways. Control is usually a sub-dialog window- of course you can put it as a child window of any window. However View it is specialized in order to realize the structure of the document view MFC designed. a View has a point to Document pointer and was fixed in a special window- known as: fr a me window (Cfr a meWnd). For Document for, CView is that it can from the morphology was the performance of the market for. However, indicators point to Document the m_pDocument may be NULL, so whenever we deal with in the View Lane Document when it is wise to do so:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
view2ctrl
.........\sun
.........\...\abouthtml
.........\...\.........\abouthtml
.........\...\.........\.........\AboutHtml.cpp
.........\...\.........\.........\AboutHtml.dep
.........\...\.........\.........\AboutHtml.dsp
.........\...\.........\.........\AboutHtml.dsw
.........\...\.........\.........\AboutHtml.mak
.........\...\.........\.........\AboutHtml.rc
.........\...\.........\.........\HtmlCtrl.cpp
.........\...\.........\.........\HtmlCtrl.h
.........\...\.........\.........\makefile
.........\...\.........\.........\RES
.........\...\.........\.........\...\about.htm
.........\...\.........\.........\...\app.rc2
.........\...\.........\.........\...\Doc.ico
.........\...\.........\.........\...\mozart.wav
.........\...\.........\.........\...\vckcom.gif
.........\...\.........\.........\resource.h
.........\...\.........\.........\StdAfx.cpp
.........\...\.........\.........\StdAfx.h
.........\...\.........\.........\TraceWin.h
.........\...\View2Ctrl.doc
.........\sun
.........\...\abouthtml
.........\...\.........\abouthtml
.........\...\.........\.........\AboutHtml.cpp
.........\...\.........\.........\AboutHtml.dep
.........\...\.........\.........\AboutHtml.dsp
.........\...\.........\.........\AboutHtml.dsw
.........\...\.........\.........\AboutHtml.mak
.........\...\.........\.........\AboutHtml.rc
.........\...\.........\.........\HtmlCtrl.cpp
.........\...\.........\.........\HtmlCtrl.h
.........\...\.........\.........\makefile
.........\...\.........\.........\RES
.........\...\.........\.........\...\about.htm
.........\...\.........\.........\...\app.rc2
.........\...\.........\.........\...\Doc.ico
.........\...\.........\.........\...\mozart.wav
.........\...\.........\.........\...\vckcom.gif
.........\...\.........\.........\resource.h
.........\...\.........\.........\StdAfx.cpp
.........\...\.........\.........\StdAfx.h
.........\...\.........\.........\TraceWin.h
.........\...\View2Ctrl.doc