VC-MFC编程实例:访问应用程序类方法.pdfVIP

  • 0
  • 0
  • 约7.75千字
  • 约 6页
  • 2026-01-29 发布于四川
  • 举报

VC-MFC编程实例:访问应用程序类方法.pdf

附录C其他应用程序类

C.1指针表

从该类使用下面的函数可以的类

CWinAppCMainFrameCChildFrameCDocumentCView

CWinAppAfxGetMainWndGetAfxMainWnd()‑GetAfxMainWnd()‑GetAfxMainWnd()‑

()或者m_pMain‑MDIGetActive()GetActiveView()‑GetActiveView()

WndGetDocument()

CMainFrameAfxGetApp()或MDIGetActive()或如果使用SDI:如果SDI:

者theApp者GetActiveFrame()GetActiveView()‑GetActiveView()

GetDocument()否则如果MDI:

或者如果使用MDI:MDIGetActive()‑

MDIGetActive()‑GetActiveView()

GetActiveView()‑

GetDocument()

CChildFrameAfxGetApp()或GetParentFrame()GetActiveView()‑GetActiveView()

者theAppGetDocument()

CDocumentAfxGetApp()或AfxGetMainWnd()GetAfxMainWnd()‑POSITION

者theAppMDIGetActive()posGetFirst\ViewP‑

osition();GetNextVie‑

文档评论(0)

1亿VIP精品文档

相关文档