1
我有一個功能區UI的應用程序。在這個用戶界面中存在一個按鈕,附帶一個菜單。我想要做的是從按鈕處理程序訪問菜單以動態添加和刪除菜單項。功能區UI動態按鈕菜單編輯
void
CMyScrollView::OnMenuButtonHandler()
{
// TODO: Add your command handler code here
CMFCRibbonBar *pRibbon = ((CMDIFrameWndEx*)GetTopLevelFrame())GetRibbonBar()
// Control ID_BTN_EDIT_MENU
// This where I would like to isolate and vary menu contents
}