<?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 : Add/Remove menu items</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Add/Remove menu items]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 00:22:27 +0000</pubDate>
  <lastBuildDate>Thu, 31 Jan 2008 11:17:17 +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=9457</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[Add/Remove menu items : Him  See Samples\CommandBars\DynamicPopups...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9457&amp;PID=30700&amp;title=add-remove-menu-items#30700</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9457<br /><strong>Posted:</strong> 31 January 2008 at 11:17am<br /><br />Him<DIV>&nbsp;</DIV><DIV>See Samples\CommandBars\DynamicPopups&nbsp; sample.</DIV>]]>
   </description>
   <pubDate>Thu, 31 Jan 2008 11:17:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9457&amp;PID=30700&amp;title=add-remove-menu-items#30700</guid>
  </item> 
  <item>
   <title><![CDATA[Add/Remove menu items : Hi,I&amp;#039;ve got a requirement...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9457&amp;PID=30694&amp;title=add-remove-menu-items#30694</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3624">phil_the_lick</a><br /><strong>Subject:</strong> 9457<br /><strong>Posted:</strong> 31 January 2008 at 10:21am<br /><br />Hi,<br><br>I've got a requirement whereby my file open menu needs to have items dynamically added/removed at run time. Not a most recent list but similar.<br><br>I have the following in CMainFrame::OnCreateControl()<br><br>if(lpCreateControl-&gt;nID==ID_FILE_OPEN)<br>{<br>&nbsp;&nbsp;&nbsp; lpCreateControl-&gt;controlType=xtpControlSplitButtonPopup;<br>&nbsp;&nbsp;&nbsp; return TRUE;<br>}<br><br>Resource:<br>ID_FILE_OPEN MENU<br>BEGIN<br>&nbsp;&nbsp;&nbsp; POPUP "Popup"<br>&nbsp;&nbsp;&nbsp; BEGIN<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  MENUITEM "item1"&nbsp;&nbsp;  ID_FILE_ITEM1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  MENUITEM "item2"&nbsp;&nbsp;  ID_FILE_ITEM2<br>&nbsp;&nbsp;&nbsp; END<br>END<br><br>This converts the control into a sub menu both on my main menu and the toolbar in question.<br><br>What I want is the ability to add a separator then some more items onto the end of the menu once on application startup. I'm guessing I also need to remove the sep and the menu items before the command bar state is saved. I also want to associate images with these new commands.<br><br>How to go about this?<br><br>Cheers,<br>Phil.<br><br>]]>
   </description>
   <pubDate>Thu, 31 Jan 2008 10:21:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9457&amp;PID=30694&amp;title=add-remove-menu-items#30694</guid>
  </item> 
 </channel>
</rss>