zoukankan      html  css  js  c++  java
  • C++MFC的关键类(View,Application,Frame,Document等等)之间访问方法列表

    From this class: You can access this class using:
    CWinApp CMainFrame CChildFrame CDocument CView
    CWinApp   AfxGetMainWnd() or
    m_pMainWnd
    AfxGetMainWnd()->MDIGetActive() AfxGetMainWnd()->GetActiveView()->GetDocument() AfxGetMainWnd()->GetActiveView()
    CMainFrame AfxGetApp() or
    theApp
      MDIGetActive() or
    GetActiveFrame()
    SDI: GetActiveView()->GetDocument()
    MDI: MDIGetActive()->GetActiveView()->GetDocument()
    SDI: GetActiveView()
    MDI: MDIGetActive()->GetActiveView()
    CChildFrame AfxGetApp() or
    theApp
    GetParentFrame()   GetActiveView()->GetDocument() GetActiveView()
    CDocument AfxGetApp() or
    theApp
    AfxGetMainWnd() AfxGetMainWnd()->MDIGetActive()   POSITION pos =GetFirstViewPosition();
    GetNextView(pos);

    (see note below)
    CView AfxGetApp() or
    theApp
    AfxGetMainWnd() GetParentFrame() GetDocument()  
    any other class AfxGetApp() AfxGetMainWnd() AfxGetMainWnd()->MDIGetActive() or
    AfxGetMainWnd()->GetActiveFrame()
    SDI: AfxGetMainWnd()->GetActiveView()->GetDocument()
    MDI: AfxGetMainWnd()->MDIGetActive()->GetActiveView()->GetDocument()
    SDI: AfxGetMainWnd()->GetActiveView()
    MDI: AfxGetMainWnd()->MDIGetActive()->GetActiveView()
    Note: To access only the current view, the document class can call AfxGetMainWnd()->GetActiveView() from a SDI application or AfxGetMainWnd()->MDIGetActive()->GetActiveView() from a MDI application.
     
  • 相关阅读:
    单位表示
    linux 文件权限
    php中高级基础知识点
    CodeIgniter配置之SESSION
    提高PHP开发质量的36个方法(精品)
    数据库优化举例详解
    ajax 跨域解决 网上资料
    static(静态)关键字
    假如java类里的成员变量是自身的对象
    Java 静态代码块&构造代码块&局部代码块
  • 原文地址:https://www.cnblogs.com/xiaomaohai/p/6157203.html
Copyright © 2011-2022 走看看