回答(1)
huigezrx 19级 2014-09-24 23:04:39
//获取当前视图 HRESULT CAAVisDlgCmd::GetCurrentViewer(CATViewer*& opCurrentViewer){ CATFrmLayout* pCurLayout = CATFrmLayout::GetCurrentLayout(); if(NULL == pCurLayout) return E_FAIL; CATFrmWindow* pCurWindow = pCurLayout->GetCurrentWindow(); if(NULL == pCurWindow) return E_FAIL; opCurrentViewer = pCurWindow->GetViewer(); return S_OK; }