![]() |
TrackPopupMenu |
Post Reply ![]() |
Author | |
jimmy ![]() Senior Member ![]() Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
![]() ![]() ![]() ![]() ![]() Posted: 21 May 2008 at 10:10am |
Hello,
1) Wish that LoadMenu transfer dwItemData from MENUITEMINFO to m_dwTag. 2) We use TPM_RETURNCMD. Is there a way to receive the selected CXTControl to get also the m_dwTag of the selected MenuItem. NotifyExecute is not send, if TPM_RETURNCMD is set. Becase we have some dynamic PopupMenu with submenu, that have many items. So we will set one ID and for every item a own Tag. Jimmy |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
1. Thanks, Added
2.
Think instead of create dynamic CMenu and then convert to CXTPPopupBar better create CXTPPopupBar directly.
pPopupBar = CXTPPopupBar::CreatePopupBar(pCommandBars);
pPopupBar->GetControls()->Add(...);
etc.
for your Dynamic items you can create custom CXTPControlButton derived class, override OnExecute method and send some message.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |