Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - TrackPopupMenu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TrackPopupMenu

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: TrackPopupMenu
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.094 seconds.