Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - WM_INITMENUPOPUP for CXTPMenuBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

WM_INITMENUPOPUP for CXTPMenuBar

 Post Reply Post Reply
Author
Message
skura View Drop Down
Newbie
Newbie


Joined: 11 January 2005
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote skura Quote  Post ReplyReply Direct Link To This Post Topic: WM_INITMENUPOPUP for CXTPMenuBar
    Posted: 03 February 2005 at 4:41pm

I am using CXTPMenuBar in a CXTPDialog. I would like to dynamically add a sub menu when the user clicks on a Menu in the CXTPMenuBar.

One can do that in a regular MFC application by handling WM_INITMENUPOPUP. I verified that this approach works for other menus. How can I achieve the same for the menus in CXTPMenuBar?

Thanks in advance for your help.

Back to Top
skura View Drop Down
Newbie
Newbie


Joined: 11 January 2005
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote skura Quote  Post ReplyReply Direct Link To This Post Posted: 03 February 2005 at 6:59pm

I ended up over loading the OnControlSelected() by defining the following message map entry.

 ON_MESSAGE(WM_XTP_CONTROLSELECTED, OnControlSelected)

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: 04 February 2005 at 5:12am
better ON_XTP_INITCOMMANDSPOPUP, WM_XTP_INITCOMMANDSPOPUP.
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.171 seconds.