摘要: 创建:CMFCPropertyGridCtrl m_wndPropList ;CRect rectDummy;rectDummy.SetRectEmpty ();if (!m_wndPropList .Create (WS_VISIBLE | WS_CHILD, rectDummy, this, 1)){ TRACE0("Failed to create Properies Grid \n"); return -1; // fail to create}m_wndPropList.EnableHeaderCtrl (FALSE);//标头m_wndPropList.Enab 阅读全文
posted @ 2013-04-14 21:46 ahuo 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 1) 在View中获得Doc指针 CYourSDIDoc *pDoc=GetDocument();一个视只能有一个文档。 2) 在App中获得MainFrame指针 CWinApp 中的 m_pMainWnd变量就是MainFrame的指针 也可以: CMainFrame *pMain =(CMainFrame *)AfxGetMainWnd(); 3) 在View中获得MainFrame指针 CMainFrame *pMain=(CmaimFrame *)AfxGetApp()->m_pMainWnd; 4) 获得View(已建立)指... 阅读全文
posted @ 2013-04-14 20:20 ahuo 阅读(307) 评论(0) 推荐(0) 编辑