<?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 : Append several items dynamically</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Append several items dynamically]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 08:53:15 +0000</pubDate>
  <lastBuildDate>Mon, 16 Aug 2004 20:40:56 +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=1044</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[Append several items dynamically : Please disregard, I finally figured...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1044&amp;PID=2773&amp;title=append-several-items-dynamically#2773</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=681">kidani</a><br /><strong>Subject:</strong> 1044<br /><strong>Posted:</strong> 16 August 2004 at 8:40pm<br /><br /><P>Please disregard, I finally figured out what I was doing wrong.<BR>I resolved this by CXTPMenuBar::LoadMenu(CMenu*);</P><P>&nbsp; UINT nCmdID = 0x8000;</P><P>&nbsp;// Get CXTPMenuBar Pointer<BR>&nbsp;CXTPMenuBar* pMenuBar = GetCommandBars()-&gt;GetMenuBar();</P><P>&nbsp;CMenu&nbsp;&nbsp;TopMenu;<BR>&nbsp;CMenu*&nbsp;&nbsp;pSubMenu;<BR>&nbsp;CMenu&nbsp;&nbsp;PopupMenu;</P><P>&nbsp;VERIFY(TopMenu.LoadMenu(IDR_MAINFRAME));<BR>&nbsp;// get the target menu pointer<BR>&nbsp;pSubMenu = TopMenu.GetSubMenu(0);<BR>&nbsp;PopupMenu.CreatePopupMenu ();<BR>&nbsp;PopupMenu.AppendMenu ( MF_STRING, nCmdID++, "submenu 1" );<BR>&nbsp;PopupMenu.AppendMenu ( MF_STRING, nCmdID++, "submenu 2" );<BR>&nbsp;pSubMenu-&gt;ModifyMenu( 2, MF_BYPOSITION | MF_POPUP | MF_ENABLED, ( UINT ) PopupMenu.Detach (), "New Menu");<BR>&nbsp;pMenuBar-&gt;LoadMenu(&amp;TopMenu);<BR><BR>Best regards,<BR>S.Kidani<BR></P>]]>
   </description>
   <pubDate>Mon, 16 Aug 2004 20:40:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1044&amp;PID=2773&amp;title=append-several-items-dynamically#2773</guid>
  </item> 
  <item>
   <title><![CDATA[Append several items dynamically :     Hi, I want to append...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1044&amp;PID=2715&amp;title=append-several-items-dynamically#2715</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=681">kidani</a><br /><strong>Subject:</strong> 1044<br /><strong>Posted:</strong> 10 August 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"><P>Hi,</P><P>I want to append several items dynamically to the existing menu.<BR>I know I can do that with MFC like this.</P><P>--------------------------------------------------<BR>&nbsp;UINT nCmdID = 0x8000;</P><P>&nbsp;CMenu*&nbsp;&nbsp;pTopMenu;<BR>&nbsp;CMenu*&nbsp;&nbsp;pSubMenu;</P><P>&nbsp;pTopMenu = GetMenu();<BR>&nbsp;pSubMenu = pTopMenu-&gt;GetSubMenu(0);</P><P>&nbsp;CMenu PopupMenu;<BR>&nbsp;PopupMenu.CreatePopupMenu ();<BR>&nbsp;PopupMenu.AppendMenu ( MF_STRING, nCmdID++, "submenu 1" );<BR>&nbsp;PopupMenu.AppendMenu ( MF_SEPARATOR );<BR>&nbsp;PopupMenu.AppendMenu ( MF_STRING, nCmdID++, "sabumenu 2" );<BR>&nbsp;pSubMenu-&gt;ModifyMenu( 7, MF_BYPOSITION | MF_POPUP, ( UINT ) PopupMenu.Detach (), "New Menu");</P><P>--------------------------------------------------<BR>How can I do that with Toolkit Pro?<BR>I know the GetMenu() always return NULL with the Toolkit Pro.</P><P>Thanks,<BR>S. kidani</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>Tue, 10 Aug 2004 07:50:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1044&amp;PID=2715&amp;title=append-several-items-dynamically#2715</guid>
  </item> 
 </channel>
</rss>