<?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 : Using &#079;nInitCommandsPopup</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Using &#079;nInitCommandsPopup]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 12:45:27 +0000</pubDate>
  <lastBuildDate>Tue, 07 Dec 2004 17:14:38 +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=1503</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[Using &#079;nInitCommandsPopup : I am a dork. BOOL bVisible flag...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1503&amp;PID=4318&amp;title=using-oninitcommandspopup#4318</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=873">jmathies</a><br /><strong>Subject:</strong> 1503<br /><strong>Posted:</strong> 07 December 2004 at 5:14pm<br /><br />I am a dork. BOOL bVisible flag set to TRUE. DOH!]]>
   </description>
   <pubDate>Tue, 07 Dec 2004 17:14:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1503&amp;PID=4318&amp;title=using-oninitcommandspopup#4318</guid>
  </item> 
  <item>
   <title><![CDATA[Using &#079;nInitCommandsPopup : Hello, I&amp;#039;m currently working...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1503&amp;PID=4317&amp;title=using-oninitcommandspopup#4317</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=873">jmathies</a><br /><strong>Subject:</strong> 1503<br /><strong>Posted:</strong> 07 December 2004 at 5:00pm<br /><br /><P>Hello,</P><P>I'm currently working with a drop down menu on a button within a toolbar. Within my app, the items in the drop down&nbsp;are customizable via a configuration interface within the app. The drop down supports a maximum of 10 items, some of which may not be visible because they have not been configured. To accomplish this, i've:</P><P>1) defined a menu for the button with 10 items</P><P>2) received the OnInitCommandsPopup event, in which&nbsp;I set the caption text for each item configured, and set the visiblilty of each item not configured to false. </P><P>This work as expected, I end up with a drop down menu with the items that have been configured&nbsp;available, and the items not configured hidden.&nbsp;</P><P>But, if the user configures an additional menu item, and then selects the drop down, this item does not show up. The reason is that </P><P>CXTPControl* pCtrl = pCommandList-&gt;FindControl( xtpControlButton, nMeniId, TRUE, FALSE );</P><P>Fails to find the menu id. For some reason, after I set a menu item visibility to false, it is removed from the control list. Also, after closing and reopening the app, the same problem occurs. I can 'reset' the problem by deleting the registry data assocociated with the controls. (CommandBars-Controls)</P><P>Maybe i've approached this from the wrong direction. What is causing the non visible menu item&nbsp;controls within the control list to be removed?</P><P>Regards,<BR>Jim</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 07 Dec 2004 17:00:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1503&amp;PID=4317&amp;title=using-oninitcommandspopup#4317</guid>
  </item> 
 </channel>
</rss>