VC获取一个菜单的状态,并打钩
摘要:
void CMainFrame::OnShowStandToolbar() //设置菜单状态{ if (AfxGetMainWnd()->GetMenu()->GetMenuState(ID_STANDTOOLBAR,MF_CHECKED)){AfxGetMainWnd()->GetMenu()->CheckMenuItem(ID_STANDTOOLBAR,MF_UNCHECKED);}else{AfxGetMainWnd()->GetMenu()->CheckMenuItem(ID_STANDTOOLBAR,MF_CHECKED);}} 阅读全文
posted @ 2011-03-26 11:27 Livid 阅读(708) 评论(0) 推荐(0) 编辑