CMainFrame *pMain=(CMainFrame *)AfxGetApp()->m_pMainWnd;CyouView *pView=(CyouView *)pMain->GetActiveView();
在view里面写this不就是了吗frame的就是GetParent(this)