![]() |
How to dynamically remove menu items? |
Post Reply ![]() |
Author | |
daniel001 ![]() Newbie ![]() Joined: 04 August 2003 Location: Netherlands Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() Posted: 08 September 2003 at 4:37pm |
How can you dynamically remove menu items from your main menu in the XTreme Toolkit Pro? I use to do something like this: void CMainFrame::OnUpdateMenuItem(CCmdUI* pCmdUI)
} But now using the CommandBars it crashes because m_pMenu = NULL Help!
|
|
![]() |
|
kstowell ![]() Admin Group ![]() Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |
![]() ![]() ![]() ![]() ![]() |
Hello, You can do this (modify menu items dynamically) by handling the WM_XTP_INITCOMMANDSPOPUP message, for example: Cheers, |
|
![]() |
|
dearvivekkumar ![]() Newbie ![]() Joined: 13 June 2012 Location: New Delhi Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
How remove some menuitem if its happen to be of Popup menu like
File Edit Test Help M1 M2 > S1 m3 S2 S3 I want to remove "M2" here |
|
![]() |
|
free_user ![]() Groupie ![]() ![]() Joined: 08 March 2006 Status: Offline Points: 24 |
![]() ![]() ![]() ![]() ![]() |
hi i think you can invisible action of "M2" when you want ro remove it. |
|
Xtreme SuitePro (ActiveX) version 15.1.3
C# 2010 Xp Sp3 |
|
![]() |
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 |