摘要:
1) 在 View 中获得 Doc 指针 CYouSDIDoc *pDoc=GetDocument();一个视只能有一个文档。2) 在App 中获得MainFrame 指针 CWinApp 中的 m_pMainWnd 变量就是 MainFrame 的指针也可以: CMainFrame *pMain =(CMainFrame *)AfxGetMainWnd();3) 在 View 中获得 MainFrame 指针 CMainFrame *pMain=(CmaimFrame*)AfxGetApp()->m_pMainWnd;4) 获得 View (已建立)指针CMainFrame *pMai 阅读全文
posted @ 2013-04-05 10:15
qq921201008
阅读(217)
评论(0)
推荐(0)

浙公网安备 33010602011771号