<?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 : About CXTPMenuBar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : About CXTPMenuBar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 06:56:43 +0000</pubDate>
  <lastBuildDate>Wed, 27 Oct 2010 04:11:25 +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=17482</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[About CXTPMenuBar : Hi,Yes, CXTPMenuBar is not CMenu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17482&amp;PID=61178&amp;title=about-cxtpmenubar#61178</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17482<br /><strong>Posted:</strong> 27 October 2010 at 4:11am<br /><br />Hi,<div><br></div><div>Yes, CXTPMenuBar is not CMenu and use own methods to change/access/delete controls</div><div><br></div><div>you need first get pointer to file control:</div><div><br></div><div>CXTPControl* pFile = pMenuBar-&gt;GetControl(0);</div><div><br></div><div>and now can access control inside CommandBar of "File" control:</div><div><br></div><div>CXTPControl* pSomeControl = pFile-&gt;GetCommandBar()-&gt;GetControl(nIndex);</div><div><br></div><div>now you can change its caption&nbsp;pSomeControl-&gt;SetCaption("New Caption");</div>]]>
   </description>
   <pubDate>Wed, 27 Oct 2010 04:11:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17482&amp;PID=61178&amp;title=about-cxtpmenubar#61178</guid>
  </item> 
  <item>
   <title><![CDATA[About CXTPMenuBar : Yes. The project requires such...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17482&amp;PID=61164&amp;title=about-cxtpmenubar#61164</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6434">kmustty</a><br /><strong>Subject:</strong> 17482<br /><strong>Posted:</strong> 26 October 2010 at 6:39am<br /><br /><P>Yes. The project requires such an operation . I spent some time to study ,I found that the menu&nbsp;is not the normal menu which can't get its CMenu pointer. So can you put forward a solution to the problem? I got fred some days. thx</P>]]>
   </description>
   <pubDate>Tue, 26 Oct 2010 06:39:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17482&amp;PID=61164&amp;title=about-cxtpmenubar#61164</guid>
  </item> 
  <item>
   <title><![CDATA[About CXTPMenuBar : Hi,You want access specific control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17482&amp;PID=61155&amp;title=about-cxtpmenubar#61155</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17482<br /><strong>Posted:</strong> 26 October 2010 at 2:53am<br /><br />Hi,<div><br></div><div>You want access specific control and get its caption ?</div>]]>
   </description>
   <pubDate>Tue, 26 Oct 2010 02:53:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17482&amp;PID=61155&amp;title=about-cxtpmenubar#61155</guid>
  </item> 
  <item>
   <title><![CDATA[About CXTPMenuBar : I use the following code to create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17482&amp;PID=61141&amp;title=about-cxtpmenubar#61141</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6434">kmustty</a><br /><strong>Subject:</strong> 17482<br /><strong>Posted:</strong> 25 October 2010 at 10:37am<br /><br />I use the following code to create a menubar<DIV>code:</DIV><DIV>if (CMDIFrameWnd::OnCreate(lpCreateStruct) == -1)<BR>&nbsp;&nbsp;return -1;</DIV><DIV>&nbsp;if (!m_wndStatusBar.Create(this) ||<BR>&nbsp;&nbsp;!m_wndStatusBar.SetIndicators(indicators,<BR>&nbsp;&nbsp;sizeof(indicators)/sizeof(UINT)))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create status bar\n");<BR>&nbsp;&nbsp;return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<BR>&nbsp;}</DIV><DIV>&nbsp;if (!InitCommandBars())<BR>&nbsp;&nbsp;return -1;</DIV><DIV>&nbsp;CXTPPaintManager::SetTheme(xtpThemeRibbon);</DIV><DIV>&nbsp;CXTPCommandBars* pCommandBars = GetCommandBars();</DIV><DIV>&nbsp;CXTPMenuBar* pMenuBar = pCommandBars-&gt;SetMenu(_T("Menu Bar"), IDR_MAINFRAME);<BR>&nbsp;pMenuBar-&gt;SetFlags(xtpFlagIgnoreSetMenuMessage);<BR>&nbsp;pMenuBar-&gt;EnableDocking(xtpFlagAlignTop);&nbsp;</DIV><DIV>&nbsp;pMenuBar-&gt;ModifyBarStyle(CBRS_GRIPPER, 0); </DIV><DIV>&nbsp;</DIV><DIV>The resource&nbsp;menu &nbsp;IDR_MAINFRAME I have already modified some of the submenu name. Now,</DIV><DIV>I want to get the submenu name&nbsp;of menubar(menu &nbsp;IDR_MAINFRAME ), how can I code? Thx for help!</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 25 Oct 2010 10:37:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17482&amp;PID=61141&amp;title=about-cxtpmenubar#61141</guid>
  </item> 
 </channel>
</rss>