Click to See Complete Forum and Search --> : Disabling (inserted) menu items on main menu


May 5th, 1999, 08:42 AM
When I insert a new popop menu in to the main menu I find I cannot disable any items in the OnUpdate handlers. I insert the menu thus

CMenu* pMainMenu = AfxGetMainWnd()->GetMenu();
VERIFY(pMainMenu->InsertMenu(-1, MF_BYPOSITION | MF_POPUP,(UINT)pPopup->Detach(), szMenuName));



If I append menu items to existing popup menus I can disable them OK!