<?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 : SetTag() problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : SetTag() problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 07:15:27 +0000</pubDate>
  <lastBuildDate>Tue, 29 Jul 2008 04:10:08 +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=11623</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[SetTag() problem : Yep, you&amp;#039;re right! Clearing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11623&amp;PID=39050&amp;title=settag-problem#39050</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 11623<br /><strong>Posted:</strong> 29 July 2008 at 4:10am<br /><br />Yep, you're right! Clearing the registry solved it!<DIV>&nbsp;</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Tue, 29 Jul 2008 04:10:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11623&amp;PID=39050&amp;title=settag-problem#39050</guid>
  </item> 
  <item>
   <title><![CDATA[SetTag() problem : Have to work. Try to comment...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11623&amp;PID=39024&amp;title=settag-problem#39024</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11623<br /><strong>Posted:</strong> 29 July 2008 at 1:37am<br /><br />Have to work.<DIV>Try to comment LoadCommandBars&nbsp;- maybe you restore layout that didn't have Tag set.</DIV>]]>
   </description>
   <pubDate>Tue, 29 Jul 2008 01:37:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11623&amp;PID=39024&amp;title=settag-problem#39024</guid>
  </item> 
  <item>
   <title><![CDATA[SetTag() problem : XTP 11.2.1. Haven&amp;#039;t verified...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11623&amp;PID=39007&amp;title=settag-problem#39007</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 11623<br /><strong>Posted:</strong> 28 July 2008 at 2:15pm<br /><br /><DIV>XTP 11.2.1. Haven't verified this in 12.0.1 yet.</DIV><DIV>&nbsp;</DIV><DIV>SetParameter/GetParameter work.</DIV><DIV><strong><FONT color=#ff0000>SetTag/GetTag don't!</FONT></strong></DIV><DIV>&nbsp;</DIV><DIV>I have some split-buttons show the same popup menu:</DIV><DIV>&nbsp;</DIV><DIV>int CMainFrame::OnCreateCommandBar(LPCREATEBARSTRUCT lpCreateBar)</DIV><DIV></DIV>{<DIV>&nbsp;&nbsp;&nbsp; // In here I create a popup menu for the buttons:</DIV><DIV>&nbsp;&nbsp;&nbsp; CXTPPopupBar* pPopupBar = CXTPPopupBar::CreatePopupBar(GetCommandBars());<BR>&nbsp;&nbsp;&nbsp;&nbsp;lpCreateBar-&gt;pCommandBar = pPopupBar;</DIV><DIV>&nbsp;&nbsp;&nbsp; pItem = pPopupBar-&gt;GetControls()-&gt;Add(...);</DIV><DIV><strong>&nbsp;&nbsp;&nbsp; pItem-&gt;SetTag(lpCreateBar-&gt;nID);</strong></DIV><DIV>&nbsp;&nbsp;&nbsp; </DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>That is, I want to distinguish between these menus, since the menu items have the same identifiers!</DIV><DIV>&nbsp;</DIV><DIV>Later, in my handler I try to retrieve this tag, but it's always 0. If I set a string using SetParameter it will indeed be there when I call GetParameter!</DIV><DIV>&nbsp;</DIV><DIV>BOOL CMainFrame::OnMyCommand(UINT nID, NMHDR* pNMHDR, LRESULT* pResult)<BR>{<BR>&nbsp;CXTPControl *pControl = ((NMXTPCONTROL*)pNMHDR)-&gt;pControl;<BR><strong>&nbsp;int tag = pControl-&gt;GetTag(); // Always 0</strong></DIV>]]>
   </description>
   <pubDate>Mon, 28 Jul 2008 14:15:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11623&amp;PID=39007&amp;title=settag-problem#39007</guid>
  </item> 
 </channel>
</rss>