<?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 : Dynamic menu</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Dynamic menu]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 11:53:10 +0000</pubDate>
  <lastBuildDate>Tue, 07 Dec 2004 11:12:37 +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=834</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[Dynamic menu : Thank you for your help, but that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=4314&amp;title=dynamic-menu#4314</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=856">djtompa</a><br /><strong>Subject:</strong> 834<br /><strong>Posted:</strong> 07 December 2004 at 11:12am<br /><br /><P>Thank you for your help, but that doesnt seem to be the problem:</P><P>if I take a nCmdID which belongs to the programs toolbar it wokrs perfectly. It just doesnt work with the cmdIds I generate during the creation of my contect menu. Do I somehow have to "tell" the XTPImageManger which cmdIds I create or something like that?</P>]]>
   </description>
   <pubDate>Tue, 07 Dec 2004 11:12:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=4314&amp;title=dynamic-menu#4314</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic menu : nIDIcons is an array of ids for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=4224&amp;title=dynamic-menu#4224</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 834<br /><strong>Posted:</strong> 01 December 2004 at 9:12am<br /><br /><font size="2">nIDIcons is an array of ids for controls in yourmenu.&nbsp; It looks like you only have one id in your array.&nbsp; Youneed an id for each icon in the bitmap resource.&nbsp; Check that theid given to your menu controls match the ids in the nIDIcons array.</font>]]>
   </description>
   <pubDate>Wed, 01 Dec 2004 09:12:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=4224&amp;title=dynamic-menu#4224</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic menu : If I have created a menu as stated...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=4184&amp;title=dynamic-menu#4184</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=856">djtompa</a><br /><strong>Subject:</strong> 834<br /><strong>Posted:</strong> 29 November 2004 at 5:30am<br /><br /><P>If I have created a menu as stated by superppy then how can I add icons. I tried the following:</P><FONT color=#0000ff size=2><P>int</FONT><FONT size=2> nIDIcons&#091;&#093; = {nCmdID};</FONT></P><FONT size=2><FONT size=2><P>XTPImageManager()-&gt;SetIcons(bitmapID, (UINT*) &amp;nIDIcons, </FONT><FONT color=#0000ff size=2>sizeof</FONT><FONT size=2>(nIDIcons)/</FONT><FONT color=#0000ff size=2>sizeof</FONT><FONT size=2>(nIDIcons&#091;0&#093;), CSize(16, 16));</FONT></P><P><FONT size=2>But no icons are shown. Whats wrong?</FONT></P><P><FONT size=2>thank you<BR></FONT><FONT size=2>tom</P></FONT></FONT>]]>
   </description>
   <pubDate>Mon, 29 Nov 2004 05:30:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=4184&amp;title=dynamic-menu#4184</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic menu : Simple example of dynamicmenu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=2461&amp;title=dynamic-menu#2461</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=622">superppy</a><br /><strong>Subject:</strong> 834<br /><strong>Posted:</strong> 11 July 2004 at 6:07am<br /><br /><P>Simple example of dynamic&nbsp;menu :</P><P>CXTPMenuBar* pMenuBar = GetCommandBars()-&gt;GetMenuBar();</P><P>pMenuBar-&gt;GetControls()-&gt;RemoveAll();</P><P>UINT nCmdID = 0x8000;</P><P>CMenu mainMenu;</P><P>mainMenu.CreateMenu();</P><P>CMenu fileMenu;</P><P>fileMenu.CreateMenu();</P><P>fileMenu.AppendMenu(MF_STRING, nCmdID++, "Open");</P><P>fileMenu.AppendMenu(MF_SEPARATOR, 0, "");</P><P>fileMenu.AppendMenu(MF_STRING, nCmdID++, "New");</P><P>mainMenu.AppendMenu(MF_POPUP, (UINT)fileMenu.GetSafeHmenu(), "File");</P><P>CMenu editMenu;</P><P>editMenu.CreateMenu();</P><P>editMenu.AppendMenu(MF_STRING, nCmdID++, "Cut");</P><P>editMenu.AppendMenu(MF_STRING, nCmdID++, "Paste");</P><P>mainMenu.AppendMenu(MF_POPUP,(UINT)editMenu.GetSafeHmenu(), "Edit");</P><P>pMenuBar-&gt;GetControls()-&gt;AddMenuItem(&amp;mainMenu, 0);</P><P>pMenuBar-&gt;GetControls()-&gt;AddMenuItem(&amp;mainMenu, 1);</P><P>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by superppy</span>]]>
   </description>
   <pubDate>Sun, 11 Jul 2004 06:07:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=2461&amp;title=dynamic-menu#2461</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic menu :    Sorry, no need for a sample....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=2296&amp;title=dynamic-menu#2296</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=389">yoavo</a><br /><strong>Subject:</strong> 834<br /><strong>Posted:</strong> 22 June 2004 at 7:50am<br /><br /><TABLE id=HB_Mail_C&#111;ntainer height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0 UNABLE="&#111;n"><T><TR height="100%" width="100%" UNABLE="&#111;n"><TD id=HB_Focus_Element vAlign=top width="100%" background="" height=250 UNABLE="off">Sorry, no need for a sample. I figure out how it is working.</TD></TR><TR hb_tag="1" UNABLE="&#111;n"><TD style="FONT-SIZE: 1pt" height=1 UNABLE="&#111;n"><DIV id=hotbar_promo></DIV></TD></TR></T></TABLE>]]>
   </description>
   <pubDate>Tue, 22 Jun 2004 07:50:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=2296&amp;title=dynamic-menu#2296</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic menu :     I tried to create a CXTPMenuBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=2286&amp;title=dynamic-menu#2286</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=389">yoavo</a><br /><strong>Subject:</strong> 834<br /><strong>Posted:</strong> 21 June 2004 at 11:32pm<br /><br /><TABLE id=HB_Mail_C&#111;ntainer height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0 UNABLE="&#111;n"><T><TR height="100%" width="100%" UNABLE="&#111;n"><TD id=HB_Focus_Element vAlign=top width="100%" background="" height=250 UNABLE="off"><P>I tried to create a CXTPMenuBar and attach it to a CMenu object, but it does not work (I think that some stuff is done in CXTPMenuBar::LoadMenuBar which I can not do).</P><P>Can you give me a sample code of&nbsp;creating a CXTPMenuBar, attaching it to a CMenu object, and setting it on the Frame window ?</P></TD></TR><TR hb_tag="1" UNABLE="&#111;n"><TD style="FONT-SIZE: 1pt" height=1 UNABLE="&#111;n"><DIV id=hotbar_promo></DIV></TD></TR></T></TABLE>]]>
   </description>
   <pubDate>Mon, 21 Jun 2004 23:32:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=2286&amp;title=dynamic-menu#2286</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic menu : You also can use pMenuBar-&amp;gt;LoadMenu....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=2272&amp;title=dynamic-menu#2272</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 834<br /><strong>Posted:</strong> 21 June 2004 at 1:39am<br /><br />You also can use pMenuBar-&gt;LoadMenu. ]]>
   </description>
   <pubDate>Mon, 21 Jun 2004 01:39:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=2272&amp;title=dynamic-menu#2272</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic menu :     I dont think I understand...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=2266&amp;title=dynamic-menu#2266</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=389">yoavo</a><br /><strong>Subject:</strong> 834<br /><strong>Posted:</strong> 20 June 2004 at 12:54am<br /><br /><TABLE id=HB_Mail_C&#111;ntainer height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0 UNABLE="&#111;n"><T><TR height="100%" width="100%" UNABLE="&#111;n"><TD id=HB_Focus_Element vAlign=top width="100%" background="" height=250 UNABLE="off"><P>I dont think I understand what you mean. I created a CMenu object(not loaded from resources), and I need it to be attached to a CXTPMenuBar.</P><P>How do I create the CXTPMenuBar ? (it seems that the only way for me to create one is by CXTPCommandBars::SetMenu, which needs a resource ID...)</P><P>&nbsp;</P></TD></TR><TR hb_tag="1" UNABLE="&#111;n"><TD style="FONT-SIZE: 1pt" height=1 UNABLE="&#111;n"><DIV id=hotbar_promo></DIV></TD></TR></T></TABLE>]]>
   </description>
   <pubDate>Sun, 20 Jun 2004 00:54:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=2266&amp;title=dynamic-menu#2266</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic menu : pMenuBar-&amp;gt;GetControls()-&amp;gt;Add(..)...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=2257&amp;title=dynamic-menu#2257</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 834<br /><strong>Posted:</strong> 18 June 2004 at 2:51am<br /><br />pMenuBar-&gt;GetControls()-&gt;Add(..)]]>
   </description>
   <pubDate>Fri, 18 Jun 2004 02:51:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=2257&amp;title=dynamic-menu#2257</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic menu :     Hi, In my application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=2208&amp;title=dynamic-menu#2208</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=389">yoavo</a><br /><strong>Subject:</strong> 834<br /><strong>Posted:</strong> 14 June 2004 at 1:36am<br /><br /><TABLE id=HB_Mail_C&#111;ntainer height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0 UNABLE="&#111;n"><T><TR height="100%" UNABLE="&#111;n" width="100%"><TD id=HB_Focus_Element vAlign=top width="100%" background="" height=250 UNABLE="off"><P>Hi,</P><P>In my application I create the menu in run-time (not loading from resources). I want my menu to be CXTPMenuBar. (SetMenu of CXTPCommandBars needs a resource ID...)</P><P>How can I do that ?</P><P>thanks, Yoav.</P></TD></TR><TR UNABLE="&#111;n" hb_tag="1"><TD style="FONT-SIZE: 1pt" height=1 UNABLE="&#111;n"><DIV id=hotbar_promo></DIV></TD></TR></T></TABLE>]]>
   </description>
   <pubDate>Mon, 14 Jun 2004 01:36:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=834&amp;PID=2208&amp;title=dynamic-menu#2208</guid>
  </item> 
 </channel>
</rss>