CMainFrame * pMainWnd=(CMainFrame*)AfxGetApp()->m_pMainWnd;//主框架

  CChildFrame * pChild = (CChildFrame *) pMainWnd->GetActiveFrame();//子框架

  CMyTestView *pView = (CMyTestView *) pChild->GetActiveView();//子框架对应活动视图

  CMyTestDoc  *pDoc=(CMyTestDoc *)pChild->GetActiveDoc();//子框架对应活动文档

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2021-07-12
  • 2022-01-03
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2021-12-15
  • 2021-08-21
相关资源
相似解决方案