|
-
May 5th, 1999, 08:42 AM
#1
Disabling (inserted) menu items on main menu
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|