文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>多视图识别

多视图识别

时间:2011-03-21  来源:安义

CChildFrame   *pChild   =   (CChildFrame   *)   ((CMainFrame*)theApp.GetMainWnd())->GetActiveFrame();  
  CMyDoc*   pDoc   =   NULL;  
  pDoc   =   (CMyDoc*)pChild->GetActiveDocument();  
  CView*   pView;  
  if(pDoc!=NULL)  
  {  
  POSITION   pos=pDoc->GetFirstViewPosition();  
  while(pos!=NULL){  
  pView=pDoc->GetNextView(pos);  
  if(pView->IsKindOf(RUNTIME_CLASS(CMyView)))  
  {  
  break;  
  }  
  }  
  if(pView->IsKindOf(RUNTIME_CLASS(CMyView)))  
  {  
   
  CChildFrame   *pChild   =   (CChildFrame*)pView->GetParentFrame();//获得该view的父窗口  
  pChild->MDIActivate();//激活该父窗口  
   
  }  
  }

相关阅读 更多 +
排行榜 更多 +
打螺丝高手

打螺丝高手

模拟经营 下载
解救火柴人计划安卓版

解救火柴人计划安卓版

体育竞技 下载
鸡生化精英安卓版

鸡生化精英安卓版

飞行射击 下载