// TODO: 如果不需要工具栏可停靠,则删除这三行m_ToolBar_File.EnableDocking(CBRS_ALIGN_ANY);EnableDocking(CBRS_ALIGN_ANY);DockControlBar(&m_ToolBar_File,AFX_IDW_DOCKBAR_TOP);//**********//////////////////////////////////////////////////////////////////////////工具栏的停靠实现,三者缺一不可。ShowControlBar(&m_wndVFloatPanel,TRU Read More
posted @ 2013-07-05 17:58 vranger Views(841) Comments(0) Diggs(0)
CMainFrame * pMainWnd=(CMainFrame*)AfxGetApp()->m_pMainWnd;//主框架 CChildFrame * pChild = (CChildFrame *) pMainWnd->GetActiveFrame();//子框架 CMyTestVi... Read More
posted @ 2013-07-05 16:38 vranger Views(226) Comments(0) Diggs(0)
从该对象如何访问其他对象全局函数调用全局函数AfxGetApp可以得到CWinApp应用类指针应用AfxGetApp()->m_pMainWnd为框架窗口指针;用CWinApp::GetFirstDocTemplatePostion、CWinApp::GetNextDocTemplate来遍历所有文... Read More
posted @ 2013-07-05 16:31 vranger Views(429) Comments(0) Diggs(0)