= AfxGetMainWnd()->GetMenu(); 4、获取工具栏、状态栏指针 主框架中可以直接使用m_wndToolBar、m_wndStatusBar 其他: CToolBar* pToolBar = (CToolBar*)AfxGetMainWnd()->GetDescendantWindow(AFX_IDW_TOOLBAR); CStatusBar* pStatusBar