CView *pView = ((CMainFrame*)AfxGetMainWnd())->GetActiveView();View类中包含CMainFrame.h
这种方式不可以吗?((CFrameWndEx*)AfxGetMainWnd())->GetActiveView()->