X
xuyunhe
Unregistered / Unconfirmed
GUEST, unregistred user!
实现属性浏览
void CMainFrame::OnWindowFromview()
{
if(m_pFormView==NULL)
{
CMDIChildWnd* pActiveChild=MDIGetActive();
CDocument* pDocument;
if(pActiveChild!=NULL&&(pDocument=pActiveChild->GetActiveDocument())!=NULL)
{
CDocTemplate* pTemplate=((CGleditApp*)AfxGetApp())->pFormTemplate;
CFrameWnd* pFrame=pTemplate->CreateNewFrame(pDocument,pActiveChild);
pTemplate->InitialUpdateFrame(pFrame,pDocument);
}
}
else
{
SetActiveView(m_pFormView);
m_pFormView->ShowWindow(SW_SHOW);
}
}
提示非法操作
谁给解决一下。
void CMainFrame::OnWindowFromview()
{
if(m_pFormView==NULL)
{
CMDIChildWnd* pActiveChild=MDIGetActive();
CDocument* pDocument;
if(pActiveChild!=NULL&&(pDocument=pActiveChild->GetActiveDocument())!=NULL)
{
CDocTemplate* pTemplate=((CGleditApp*)AfxGetApp())->pFormTemplate;
CFrameWnd* pFrame=pTemplate->CreateNewFrame(pDocument,pActiveChild);
pTemplate->InitialUpdateFrame(pFrame,pDocument);
}
}
else
{
SetActiveView(m_pFormView);
m_pFormView->ShowWindow(SW_SHOW);
}
}
提示非法操作
谁给解决一下。