<?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 : Adding Menu Item at RUN Time</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Adding Menu Item at RUN Time]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 18:53:53 +0000</pubDate>
  <lastBuildDate>Thu, 16 Aug 2007 04:22:53 +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=7796</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[Adding Menu Item at RUN Time : Thanks alot Oleg.... ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7796&amp;PID=25157&amp;title=adding-menu-item-at-run-time#25157</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2903">KumarCJ</a><br /><strong>Subject:</strong> 7796<br /><strong>Posted:</strong> 16 August 2007 at 4:22am<br /><br />Thanks alot Oleg.... <img src="https://forum.codejock.com/smileys/smiley1.gif" border="0">]]>
   </description>
   <pubDate>Thu, 16 Aug 2007 04:22:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7796&amp;PID=25157&amp;title=adding-menu-item-at-run-time#25157</guid>
  </item> 
  <item>
   <title><![CDATA[Adding Menu Item at RUN Time : KumarCJ,   pMenuBar-&amp;gt;GetControls()-&amp;gt;InsertAt,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7796&amp;PID=25135&amp;title=adding-menu-item-at-run-time#25135</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7796<br /><strong>Posted:</strong> 15 August 2007 at 12:53pm<br /><br /><DIV>KumarCJ, </DIV><DIV>&nbsp;</DIV><DIV>pMenuBar-&gt;GetControls()-&gt;InsertAt, pMenuBar-&gt;GetControls()-&gt;Add add item to menu.</DIV><DIV>&nbsp;</DIV><DIV>if you need to add to submenu, you need add control to corresponded commandbar:</DIV><DIV>&nbsp;</DIV><DIV>pMenuBar-&gt;GetControl(nIndexOfToolsPopup)-&gt;GetCommandBar()-&gt;GetControls()-&gt;Add(...);</DIV>]]>
   </description>
   <pubDate>Wed, 15 Aug 2007 12:53:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7796&amp;PID=25135&amp;title=adding-menu-item-at-run-time#25135</guid>
  </item> 
  <item>
   <title><![CDATA[Adding Menu Item at RUN Time : Use:  pMenuBar-&amp;gt;GetContro...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7796&amp;PID=25126&amp;title=adding-menu-item-at-run-time#25126</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2928">terrym</a><br /><strong>Subject:</strong> 7796<br /><strong>Posted:</strong> 15 August 2007 at 6:33am<br /><br />Use:<DIV>&nbsp;</DIV><DIV>pMenuBar-&gt;GetControls()-&gt;InsertAt(xtpControlButton, nIndex);</DIV><DIV>&nbsp;</DIV><DIV>where nIndex is the item you want to place before</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 15 Aug 2007 06:33:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7796&amp;PID=25126&amp;title=adding-menu-item-at-run-time#25126</guid>
  </item> 
  <item>
   <title><![CDATA[Adding Menu Item at RUN Time : I Tried using the code you suggested CXTPCommandBar*...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7796&amp;PID=25124&amp;title=adding-menu-item-at-run-time#25124</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2903">KumarCJ</a><br /><strong>Subject:</strong> 7796<br /><strong>Posted:</strong> 15 August 2007 at 6:24am<br /><br /><P>I Tried using the code you suggested</P><DIV>CXTPCommandBar* pMenuBar;</DIV><DIV>pMenuBar-&gt;GetControls()-&gt;Add(xtpControlButton, ID);</DIV><DIV>&nbsp;</DIV><DIV><strong>"Sync" menu item is not added in&nbsp;"TOOLs" main menu.</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV>It is added after the "HELP" main menu.</DIV><DIV>&nbsp;</DIV><DIV>Once again I am putting the requirement below:</DIV><DIV>&nbsp;</DIV><DIV>Under <strong>TOOLs </strong>main menu, we have "Trace", "Option", "Customize" menu items.</DIV><DIV>&nbsp;</DIV><DIV>At run time based on some condition I wanted to&nbsp;<strong>add </strong>the <strong>"Sync" </strong>menu item under <strong>"TOOLs"</strong> Main menu&nbsp;<strong>after "Trace" and before "Option" </strong>menu item&nbsp;and <strong>delete "Sync" </strong>from <strong>"TOOLs" </strong>main menu for some condition.</DIV><DIV>&nbsp;</DIV><DIV>I checked the \Samples\CommandBars\DynamicPopups&nbsp; sample, but I did not found </DIV><DIV>"pMenuBar-&gt;GetControls()-&gt;Add(xtpControlButton, ID);".</DIV><DIV>&nbsp;</DIV><DIV>Waiting for your suggestion.</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>KumarCJ</DIV>]]>
   </description>
   <pubDate>Wed, 15 Aug 2007 06:24:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7796&amp;PID=25124&amp;title=adding-menu-item-at-run-time#25124</guid>
  </item> 
  <item>
   <title><![CDATA[Adding Menu Item at RUN Time : Hello,  to add item to menu:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7796&amp;PID=25093&amp;title=adding-menu-item-at-run-time#25093</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7796<br /><strong>Posted:</strong> 14 August 2007 at 10:15am<br /><br /><DIV>Hello,</DIV><DIV>&nbsp;</DIV><DIV>to add item to menu:</DIV><DIV>pMenuBar-&gt;GetControls()-&gt;Add(xtpControlButton, ID);</DIV><DIV>&nbsp;</DIV><DIV>See \Samples\CommandBars\DynamicPopups&nbsp; sample.</DIV>]]>
   </description>
   <pubDate>Tue, 14 Aug 2007 10:15:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7796&amp;PID=25093&amp;title=adding-menu-item-at-run-time#25093</guid>
  </item> 
  <item>
   <title><![CDATA[Adding Menu Item at RUN Time : Hello,  How to add the menu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7796&amp;PID=25089&amp;title=adding-menu-item-at-run-time#25089</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2903">KumarCJ</a><br /><strong>Subject:</strong> 7796<br /><strong>Posted:</strong> 14 August 2007 at 8:33am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>How to add the menu item (say : Sync) in main menu at Run Time.</DIV><DIV>&nbsp;</DIV><DIV>I wanted to add menu item (say : Sync)&nbsp; in&nbsp;TOOLs menu at Run time. Priviously we used "InsertMenu()".</DIV><DIV>&nbsp;</DIV><DIV>How can&nbsp;I do?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>KumarCJ.</DIV>]]>
   </description>
   <pubDate>Tue, 14 Aug 2007 08:33:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7796&amp;PID=25089&amp;title=adding-menu-item-at-run-time#25089</guid>
  </item> 
 </channel>
</rss>