CMainFrame *pFrame=(CMainFrame *)AfxGetApp()->GetMainWnd();
CpotoView *pView=(CpotoView *)pFrame->GetActiveView;
要是这样子的话会报n多个错 关于Document的错误,
还有一个错误是
无法从"CView *(__thiscall CFrameWnd:: *)(void)const"转换为"CpotoView *"