- 1、本文档共10页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
MFC应用程序中指针的使用(国外英语资料)
MFC应用程序中指针的使用(国外英语资料)
This article is contributed by chenwang02
DOC documents may experience poor browsing on the WAP side. It is recommended that you first select TXT, or download the source file to the local view.
The pointer in the MFC application using gouguijia VC Author: handle provides the corresponding function to obtain the object: for example, can obtain the current document and view the pointer by the variable m_pActiveDocument and m_pActiveView in CMainFrame. Anywhere else, you can get the pointer of CMainFrame by AfxGetMainWnd (), and also get the pointer of Doc and View. Under View, the function GetDocument () returns the pointer to the Doc directly. Under Doc, GetFirstView gets the first view, and GetNextView () gets the following view, and goes down in order to get all the views. With the GetDC () function, you get the DC associated with it. 1) in the View Doc pointer 2) obtained in App MainFrame pointer 3) obtained in View MainFrame View (4) pointer has been established) 5) to obtain the current document pointer pointer 6) to obtain the status bar and toolbar and status bar pointer 7) for 8 variables) in the Mainframe toolbar menu pointer was 9) in any class in the application class 10) to obtain pointer view class from the document class (1) 11) obtained in App document template pointer 12) from the document template document class pointer 13) in the document class to obtain the document template pointer 14) obtain pointer view classes from the document class (2) 15) another view class pointer in VC programming for just from a view class The biggest obstacle and problem for beginning learners is message mechanism and pointer acquisition and operation. In fact, these content is basically every VC learning tools will be written on the content, but also through MSDN, many problems can be solved. The following text is mainly personal experience in the use of pointers in programming, say inappropriate places, please correct me. The framework we normall
文档评论(0)