<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Retreiving the CXTPControlButton on the Onclick</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Retreiving the CXTPControlButton on the Onclick]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 09 Jun 2026 16:35:41 +0000</pubDate>
  <lastBuildDate>Wed, 03 Jul 2013 07:54:34 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=21768</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Retreiving the CXTPControlButton on the Onclick : Hello,I have derived CXTPControlButton...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21768&amp;PID=71293&amp;title=retreiving-the-cxtpcontrolbutton-on-the-onclick#71293</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1337">BadJerry</a><br /><strong>Subject:</strong> 21768<br /><strong>Posted:</strong> 03 July 2013 at 7:54am<br /><br />Hello,<div><br></div><div>I have derived &nbsp;CXTPControlButton (let's call it my CXTPMyDynamicMenu) so I could have a dynamic way of filling menus after a right click...&nbsp;</div><div>the same class shows 3 levels of sub menu-items.</div><div><br></div><div>In &nbsp;CMainFrame::OnCreateControl, I create a&nbsp;<span style="line-height: 1.4;">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)</span></div><div><br></div><div>Is there anyway to know on the OnClick event (well it's an On_COMMAND or ON_COMMAND_RANGE) which&nbsp;<span style="line-height: 1.4;">CXTPMyDynamicMenu object has been selected? and its parent?&nbsp;</span></div><div><span style="line-height: 1.4;">Something like "GetCurrentClickedMenuButton()"...</span></div><div><span style="line-height: 1.4;">I know I can &nbsp;get the ID of the button but I do not want to have to reserve hundreds of IDS...</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">Thanks in advance,</span></div><div><span style="line-height: 1.4;">Jerry</span></div>]]>
   </description>
   <pubDate>Wed, 03 Jul 2013 07:54:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21768&amp;PID=71293&amp;title=retreiving-the-cxtpcontrolbutton-on-the-onclick#71293</guid>
  </item> 
 </channel>
</rss>