15,979
社区成员
发帖
与我相关
我的任务
分享
LRESULT CMainFrame::OnChangemap(WPARAM wParam, LPARAM lParam)
{
CView* pOldActiveView=this->GetActiveView();
CGoogleMap* pNewActiveView=(CGoogleMap*) new CGoogleMap();
CCreateContext context;
context.m_pCurrentDoc=pOldActiveView->GetDocument();
pNewActiveView->Create(NULL,NULL,0L,CFrameWnd::rectDefault,this,IDC_EXPLORER1,&context);
pNewActiveView->OnInitialUpdate();
SetActiveView(pNewActiveView);
pOldActiveView->ShowWindow(SW_HIDE);
pNewActiveView->ShowWindow(SW_SHOW);
pNewActiveView->SetDlgCtrlID(AFX_IDW_PANE_FIRST);
RecalcLayout();
return TRUE;
}