<?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 : Which menu item has been selected?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Which menu item has been selected?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 18:55:59 +0000</pubDate>
  <lastBuildDate>Wed, 14 Dec 2005 06:36:49 +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=3389</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[Which menu item has been selected? : Thanks ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3389&amp;PID=10200&amp;title=which-menu-item-has-been-selected#10200</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1309">simus</a><br /><strong>Subject:</strong> 3389<br /><strong>Posted:</strong> 14 December 2005 at 6:36am<br /><br />Thanks]]>
   </description>
   <pubDate>Wed, 14 Dec 2005 06:36:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3389&amp;PID=10200&amp;title=which-menu-item-has-been-selected#10200</guid>
  </item> 
  <item>
   <title><![CDATA[Which menu item has been selected? : Hi As workaround in UNINITCOMMANDSPOPUP...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3389&amp;PID=10196&amp;title=which-menu-item-has-been-selected#10196</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3389<br /><strong>Posted:</strong> 14 December 2005 at 5:50am<br /><br /><P>Hi</P><P>As workaround in UNINITCOMMANDSPOPUP you can check all controls of PopupBar and check if pControl-&gt;GetPressed()</P><P>for (....; i &lt; pPopupBar-&gt;GetControls()-&gt;GetCount()..)</P><P>{</P><P>&nbsp;&nbsp; if (pPopupBar-&gt;GetControl(i)-&gt;GetPressed()) ...<BR>}</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 14 Dec 2005 05:50:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3389&amp;PID=10196&amp;title=which-menu-item-has-been-selected#10196</guid>
  </item> 
  <item>
   <title><![CDATA[Which menu item has been selected? : Hi, I have a standard CXTPCommandBars....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3389&amp;PID=10165&amp;title=which-menu-item-has-been-selected#10165</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1309">simus</a><br /><strong>Subject:</strong> 3389<br /><strong>Posted:</strong> 12 December 2005 at 2:47am<br /><br /><P>Hi,</P><P>I have a standard CXTPCommandBars. I wanted to handle the "lifetime" of a CXTPCommandBar when it is shown (TrackPopupMenu and MainFrame menu)&nbsp;and the selected item in the command bar if any.</P><P>I would like to do this to automatize the autohide of rarely used items in menus.</P><P>So I handled :<BR>&nbsp;ON_XTP_INITCOMMANDSPOPUP()<BR>&nbsp;ON_XTP_UNINITCOMMANDSPOPUP()<BR>And no problem </P><P>Then I handled WM_COMMAND in the MainFrame to catch what command has been selected</P><P>The problem I have is that the WM_COMMAND is fired after ON_XTP_UNINITCOMMANDSPOPUP() and I "need" to get it before ON_XTP_UNINITCOMMANDSPOPUP() or at least know before ON_XTP_UNINITCOMMANDSPOPUP() what is the selected item in the menu.<BR>So the question is : Is there an event that occurs between ON_XTP_INITCOMMANDSPOPUP() and ON_XTP_UNINITCOMMANDSPOPUP() that indicates what item has been selected and so what WM_COMMAND will be sent?</P><P>Or any other help is welcome.</P><P>Thanks a lot<BR></P><P>&nbsp;</P><P>So before the CXTPCommandBar is shown I have ON_XTP_INITCOMMANDSPOPUP(), After the </P>]]>
   </description>
   <pubDate>Mon, 12 Dec 2005 02:47:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3389&amp;PID=10165&amp;title=which-menu-item-has-been-selected#10165</guid>
  </item> 
 </channel>
</rss>