<?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 : GetMenu doubt in commandbar?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : GetMenu doubt in commandbar?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 00:46:27 +0000</pubDate>
  <lastBuildDate>Wed, 06 Feb 2008 09:02:50 +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=9299</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[GetMenu doubt in commandbar? : Hello, Yes and our samples show...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30858&amp;title=getmenu-doubt-in-commandbar#30858</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9299<br /><strong>Posted:</strong> 06 February 2008 at 9:02am<br /><br /><DIV>Hello,</DIV><DIV>Yes and our samples show it. Seriously 120 messages and you have no idea what CommandBars can do. Please check all samples and try to understand how they work.</DIV>]]>
   </description>
   <pubDate>Wed, 06 Feb 2008 09:02:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30858&amp;title=getmenu-doubt-in-commandbar#30858</guid>
  </item> 
  <item>
   <title><![CDATA[GetMenu doubt in commandbar? : Hi, I understand that all your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30844&amp;title=getmenu-doubt-in-commandbar#30844</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2969">Ashok</a><br /><strong>Subject:</strong> 9299<br /><strong>Posted:</strong> 06 February 2008 at 12:19am<br /><br />Hi, I understand that all your commandbar samples are having MDI Menu. My problem is when ever there is a MDIActive(means window list will have Data1,Page1etc.,),I have to set my full menu, if there is nothing in the window list(means if i closed all my active view) I have to set another menu. Please help.]]>
   </description>
   <pubDate>Wed, 06 Feb 2008 00:19:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30844&amp;title=getmenu-doubt-in-commandbar#30844</guid>
  </item> 
  <item>
   <title><![CDATA[GetMenu doubt in commandbar? : Hi,  Most our samples in CommandBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30831&amp;title=getmenu-doubt-in-commandbar#30831</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9299<br /><strong>Posted:</strong> 05 February 2008 at 12:54pm<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Most our samples in CommandBars forlder show MDI/Default menus.</DIV><DIV>&nbsp;</DIV><DIV>Please look all CommandBars samples.</DIV>]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 12:54:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30831&amp;title=getmenu-doubt-in-commandbar#30831</guid>
  </item> 
  <item>
   <title><![CDATA[GetMenu doubt in commandbar? : I have uploaded a file which contains...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30811&amp;title=getmenu-doubt-in-commandbar#30811</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2969">Ashok</a><br /><strong>Subject:</strong> 9299<br /><strong>Posted:</strong> 05 February 2008 at 7:03am<br /><br />I have uploaded a file which contains my doubt.please look into this issue.<a href="https://forum.codejock.com/uploads/20080205_070302_test.rar" target="_blank">uploads/20080205_070302_test.rar</A>]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 07:03:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30811&amp;title=getmenu-doubt-in-commandbar#30811</guid>
  </item> 
  <item>
   <title><![CDATA[GetMenu doubt in commandbar? : Hi, Thanks a lot. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30552&amp;title=getmenu-doubt-in-commandbar#30552</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2969">Ashok</a><br /><strong>Subject:</strong> 9299<br /><strong>Posted:</strong> 28 January 2008 at 8:06am<br /><br />Hi, Thanks a lot.]]>
   </description>
   <pubDate>Mon, 28 Jan 2008 08:06:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30552&amp;title=getmenu-doubt-in-commandbar#30552</guid>
  </item> 
  <item>
   <title><![CDATA[GetMenu doubt in commandbar? : Hi Ashok,  You are not the first...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30539&amp;title=getmenu-doubt-in-commandbar#30539</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=19">mihey</a><br /><strong>Subject:</strong> 9299<br /><strong>Posted:</strong> 28 January 2008 at 4:29am<br /><br /><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><FONT size=2><FONT face="Arial, Helvetica, sans-serif">Hi Ashok,</FONT><FONT face="Arial, Helvetica, sans-serif"> </FONT></FONT></P><DIV><FONT face="Arial, Helvetica, sans-serif" size=2>You are not the first one who ask about this. Maybe Codejock guys have to consider making a solution for this. </FONT></DIV><DIV><DIV><DIV><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><O:P><FONT face="Arial, Helvetica, sans-serif" size=2></FONT></O:P></SPAN></P><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><FONT face="Arial, Helvetica, sans-serif"><FONT size=2>I also had&nbsp;the same&nbsp;problem and had to patch CXTPCommandBar and CXTPMenuBar a little bit. I've made&nbsp;it in&nbsp;this way&nbsp;because I did not want to change handling of menus in my application which was very complex due to exposing an object model via COM and based on old version of XtremeToolkit where GetMenu worked. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN><O:P></O:P></FONT></FONT></SPAN></DIV></DIV></DIV><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><FONT face="Arial, Helvetica, sans-serif">In XTPCommandBar.h I added member<O:P></O:P></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><strong>HMENU<SPAN style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>m_hLoadedMenu;<O:P></O:P></strong></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><FONT face="Arial, Helvetica, sans-serif">In XTPCommandBar.cpp I added before return<O:P></O:P></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">BOOL CXTPCommandBar::LoadMenu(CMenu* pMenu, BOOL bRemoveControls)<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">{<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>…<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>// ----<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><strong><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>if (bRemoveControls) m_hLoadedMenu=pMenu-&gt;m_hMenu;<O:P></O:P></strong></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>// ----<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>return TRUE;<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">}<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><FONT face="Arial, Helvetica, sans-serif">In XTPMenuBar.h I just defined method <O:P></O:P></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><strong>CMenu* GetMenu( ) const;<O:P></O:P></strong></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><FONT face="Arial, Helvetica, sans-serif">And added the implementation in XTPMenuBar.cpp<O:P></O:P></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><strong>CMenu* CXTPMenuBar::GetMenu() const<O:P></O:P></strong></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><strong>{<O:P></O:P></strong></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><strong><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>return CMenu::FromHandle(m_hLoadedMenu);<O:P></O:P></strong></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><strong>}</P></strong><DIV></DIV><DIV></DIV><DIV></DIV><P><FONT face="Arial, Helvetica, sans-serif">So, now I can acces loaded menu via GetCommandBars()-&gt;GetMenuBar()-&gt;GetMenu() and it works fine for me but I have to pach it in each new version of XTP.&nbsp; <SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">Of course this is not a universal method but at least it works in case of loading menus from recourses.</P><DIV>&nbsp;Best regards, Mikhail<O:P></O:P></SPAN></FONT></DIV></SPAN>]]>
   </description>
   <pubDate>Mon, 28 Jan 2008 04:29:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30539&amp;title=getmenu-doubt-in-commandbar#30539</guid>
  </item> 
  <item>
   <title><![CDATA[GetMenu doubt in commandbar? : Hi, There is no HMENU in CommandBars. use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30105&amp;title=getmenu-doubt-in-commandbar#30105</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9299<br /><strong>Posted:</strong> 14 January 2008 at 9:37am<br /><br /><P>Hi,</P><DIV>There is no HMENU in CommandBars.</DIV><DIV>use GetCommandBars()-&gt;GetMenuBar() to get pointer to menubar. but its not CMenu.</DIV>]]>
   </description>
   <pubDate>Mon, 14 Jan 2008 09:37:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30105&amp;title=getmenu-doubt-in-commandbar#30105</guid>
  </item> 
  <item>
   <title><![CDATA[GetMenu doubt in commandbar? : Hi, What is the equivalent code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30102&amp;title=getmenu-doubt-in-commandbar#30102</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2969">Ashok</a><br /><strong>Subject:</strong> 9299<br /><strong>Posted:</strong> 14 January 2008 at 6:58am<br /><br />Hi,<DIV><FONT color=#0000ff size=1><FONT color=#0000ff size=1>&nbsp;What is the equivalent code for this statement in the CommandBar<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pMainWnd-&gt;GetMenu(); <BR>&nbsp;because&nbsp;it returns NULL in my application. Please help.</DIV></FONT></FONT>]]>
   </description>
   <pubDate>Mon, 14 Jan 2008 06:58:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9299&amp;PID=30102&amp;title=getmenu-doubt-in-commandbar#30102</guid>
  </item> 
 </channel>
</rss>