登录
首页 » 界面开发 » Convert CHtmlView to CHtmlCtrl CHtmlView和我们最终生成的CHtmlCtrl到底有什么区别? 其实,区别仅仅是它们...

Convert CHtmlView to CHtmlCtrl CHtmlView和我们最终生成的CHtmlCtrl到底有什么区别? 其实,区别仅仅是它们...

于 2022-05-31 发布 文件大小:277.29 kB
0 58
下载积分: 2 下载次数: 1

代码说明:

Convert CHtmlView to CHtmlCtrl CHtmlView和我们最终生成的CHtmlCtrl到底有什么区别? 其实,区别仅仅是它们被使用的方法不同.控件通常是对话框里的子窗口---当然你可以把它作为 任何窗口的子窗口.然而View却是专门为了实现MFC 文档视图结构而设计的.一个View有一个指向 Document的指针并且被固定在一个特别的窗口里---人称:框架窗口(CFrameWnd). 对于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: frame window (CFrameWnd). 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 d

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 104292会员总数
  • 28今日下载