获取视图类指针的方法

来源:互联网 发布:js数组删除元素 编辑:程序博客网 时间:2024/06/05 23:05

CMainFrame* pMainFrame = (CMainFrame*)::AfxGetMainWnd();

CTestView* PTestView = (CTestView*)pMainFrame->GetActiveFrame()->GetActiveView();

原创粉丝点击