![]() |
How to gray a CXTMenu menu item? |
Post Reply
|
| Author | |
softz
Newbie
Joined: 29 December 2003 Location: Singapore Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: How to gray a CXTMenu menu item?Posted: 22 July 2004 at 12:59am |
|
Hi, Please help... I've a menu shown as below (for example). CXTMenu menu; CXTMenu* pSubMenu = menu.GetSubMenu(0); pSubMenu->EnableMenuItem(ID_MENU_ITEM1, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED); CXTPCommandBars::TrackPopupMenu(pSubMenu, 0, pos.x, pos.y, this); I'm using the code for a pop-up menu. Unfortunately, it failed to disable the menu item. May I know how could I disable a menu item if I'm using the CXTMenu? Regards. |
|
![]() |
|
srana
Groupie
Joined: 15 May 2003 Location: India Status: Offline Points: 27 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 July 2004 at 9:37pm |
|
They are like notmal menus. You have to handle on ON_UPDATE_COMMAND_UI(ID_MSG_XX, OnMSGXX) void CLassName::OnMSGXXCCmdUI *pCmdUI){ pCmdUI->Enable(false); } |
|
|
Shrishail Rana |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |