Retreiving the CXTPControlButton on the Onclick |
Post Reply |
Author | |
BadJerry
Newbie Joined: 22 July 2005 Location: United Kingdom Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 03 July 2013 at 7:54am |
Hello,
I have derived CXTPControlButton (let's call it my CXTPMyDynamicMenu) so I could have a dynamic way of filling menus after a right click... the same class shows 3 levels of sub menu-items. In CMainFrame::OnCreateControl, I create a CXTPMyDynamicMenu: that works (although my menu is shown on a view, I do not like to have to add some code in CMainFrame... but that's not important) Is there anyway to know on the OnClick event (well it's an On_COMMAND or ON_COMMAND_RANGE) which CXTPMyDynamicMenu object has been selected? and its parent? Something like "GetCurrentClickedMenuButton()"... I know I can get the ID of the button but I do not want to have to reserve hundreds of IDS... Thanks in advance, Jerry
|
|
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 |