<?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 : Creating Normal Menu on the fly</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Creating Normal Menu on the fly]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 03:32:41 +0000</pubDate>
  <lastBuildDate>Mon, 06 Apr 2009 04:17: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=13889</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[Creating Normal Menu on the fly :  thank you. that works fine now....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13889&amp;PID=47594&amp;title=creating-normal-menu-on-the-fly#47594</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3807">lion</a><br /><strong>Subject:</strong> 13889<br /><strong>Posted:</strong> 06 April 2009 at 4:17am<br /><br />thank you. that works fine now. thanks a lot&nbsp;<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="absmiddle"> !]]>
   </description>
   <pubDate>Mon, 06 Apr 2009 04:17:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13889&amp;PID=47594&amp;title=creating-normal-menu-on-the-fly#47594</guid>
  </item> 
  <item>
   <title><![CDATA[Creating Normal Menu on the fly : ps. After line  pMyCtrl-&amp;gt;SetCommandBar(pBar);you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13889&amp;PID=47482&amp;title=creating-normal-menu-on-the-fly#47482</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13889<br /><strong>Posted:</strong> 02 April 2009 at 4:59am<br /><br />ps.<DIV>After line</DIV><DIV>&nbsp;&nbsp;&nbsp; pMyCtrl-&gt;SetCommandBar(pBar);<BR>you also need&nbsp;release&nbsp;pBar:</DIV><DIV>pBar-&gt;InternalRelease();</DIV><DIV>to avoid leak.</DIV>]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 04:59:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13889&amp;PID=47482&amp;title=creating-normal-menu-on-the-fly#47482</guid>
  </item> 
  <item>
   <title><![CDATA[Creating Normal Menu on the fly : Hi,  Replace CXTPPopupToolBar*...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13889&amp;PID=47481&amp;title=creating-normal-menu-on-the-fly#47481</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13889<br /><strong>Posted:</strong> 02 April 2009 at 4:58am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Replace</DIV><DIV>CXTPPopupToolBar* pBar = CXTPPopupToolBar::CreatePopupToolBar(pMenuBar-&gt;GetCommandBars());<BR>to</DIV><DIV><strong>CXTPPopupBar</strong>* pBar = <strong>CXTPPopupBar</strong>::<strong>CreatePopupBar</strong>(pMenuBar-&gt;GetCommandBars());<BR></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 04:58:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13889&amp;PID=47481&amp;title=creating-normal-menu-on-the-fly#47481</guid>
  </item> 
  <item>
   <title><![CDATA[Creating Normal Menu on the fly : Hi,I would appriciate some help!all...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13889&amp;PID=47438&amp;title=creating-normal-menu-on-the-fly#47438</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3807">lion</a><br /><strong>Subject:</strong> 13889<br /><strong>Posted:</strong> 01 April 2009 at 6:06am<br /><br />Hi,<br><br>I would appriciate some help!<br><br>all I want to do is build a menu on the fly...<br><br>this is what I do so far:<br><br>VoidT CreateMenuBar(HWND wnd, HMENU hMenu) {<br><br>&nbsp;&nbsp;&nbsp; CMenu* pMenu = CMenu::FromHandle(hMenu);<br>&nbsp;&nbsp;&nbsp; CXTPCommandBar* pMenuBar = pFrame-&gt;GetCommandBars()-&gt;GetMenuBar();<br>&nbsp;&nbsp;&nbsp; pMenuBar-&gt;LoadMenu(pMenu);<br><br>&nbsp;&nbsp;&nbsp; CXTPMyControlPopup* pMyCtrl = CXTPMyControlPopup::CreateMyControlPopup(xtpControlPopup);<br>&nbsp;&nbsp;&nbsp; pMyCtrl-&gt;SetCaption((LPCTSTR)"MyCtrl");<br>&nbsp;&nbsp;&nbsp; pMenuBar-&gt;GetControls()-&gt;Add(pMyCtrl);<br><br>&nbsp;&nbsp;&nbsp; CXTPPopupToolBar* pBar = CXTPPopupToolBar::CreatePopupToolBar(pMenuBar-&gt;GetCommandBars());<br>&nbsp;&nbsp;&nbsp; pMyCtrl-&gt;SetCommandBar(pBar);<br>&nbsp;&nbsp;&nbsp; ...<br>}<br><br>that works fine so far and I get a very nice additional button in the main menu bar of the app.<br>but now I want to add menu entries...<br>at the moment I am doing that in the "OnCalcDynamicSize()" Function of "CXTPMyControlPopup::CXTPControlPopup" :<br><br>...<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPControlButton *pControl = (CXTPControlButton*)GetCommandBar()-&gt;GetControls()-&gt;Add(xtpControlButton, MY_ID, "MyMenuEntry");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControl-&gt;SetCaption("MyMenuEntry");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControl-&gt;SetFlags(xtpFlagManualUpdate);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControl-&gt;SetEnabled(true);<br>...<br><br>this way I get a lot of nice buttons, but unfortunatly they dont look like menus at all.<br>What do I need to do to generate menus that look like menus this way?<br><br>Thanx for your help.<br>Cheers Bjoern<br><br>]]>
   </description>
   <pubDate>Wed, 01 Apr 2009 06:06:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13889&amp;PID=47438&amp;title=creating-normal-menu-on-the-fly#47438</guid>
  </item> 
 </channel>
</rss>