Print Page | Close Window

TrackPopupMenu

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=10724
Printed Date: 10 June 2024 at 7:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TrackPopupMenu
Posted By: jimmy
Subject: TrackPopupMenu
Date 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




Replies:
Posted By: Oleg
Date Posted: 21 May 2008 at 1:35pm
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net