文档类,视图类,框架类,应用程序类句柄获取
摘要:
VC中常用的文档类,视图类,框架类,应用程序类,自定义类中获取其它四个类的方法A:GET App AfxGetInstanceHandle() AfxGetApp()GET Frame->View->Document SDI AfxGetMainWnd() -> GetActiveView() -> GetDocument() MDI AfxGetMainWnd() -> MDIGetActive() -> GetActiveView() -> GetDocument()GET Menu CMenu *pMenu=AfxGetApp()->m_p 阅读全文
posted @ 2011-08-05 20:19 伪君 阅读(1001) 评论(0) 推荐(0) 编辑