<?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 : CXTPMenuBar in CWnd derived CHILD window</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CXTPMenuBar in CWnd derived CHILD window]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 16:52:38 +0000</pubDate>
  <lastBuildDate>Tue, 25 Nov 2008 06:29:59 +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=11019</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[CXTPMenuBar in CWnd derived CHILD window : Hi Oleg and Martin,thanks! That...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=43175&amp;title=cxtpmenubar-in-cwnd-derived-child-window#43175</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3688">BobWansink</a><br /><strong>Subject:</strong> 11019<br /><strong>Posted:</strong> 25 November 2008 at 6:29am<br /><br />Hi Oleg and Martin,<br><br>thanks! That clarified a lot!<br><br>Bob<br>]]>
   </description>
   <pubDate>Tue, 25 Nov 2008 06:29:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=43175&amp;title=cxtpmenubar-in-cwnd-derived-child-window#43175</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar in CWnd derived CHILD window : Hi;I did it this way in my OnSize()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=43174&amp;title=cxtpmenubar-in-cwnd-derived-child-window#43174</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 11019<br /><strong>Posted:</strong> 25 November 2008 at 5:41am<br /><br />Hi;<br>I did it this way in my OnSize() handler:<br><br>CMyWnd::OnSize(...) {<br>&nbsp;&nbsp;&nbsp; CWnd::OnSize(nType, cx, cy);&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; CXTPClientRect rcClient(this);<br>&nbsp;&nbsp;&nbsp; if (cx&gt;0 || cy&gt;0) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; RepositionBars(0, 0xffff, AFX_IDW_PANE_FIRST, 0, 0, &amp;rcClient);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; RepositionBars(0, 0xffff, AFX_IDW_PANE_FIRST, reposQuery, &amp;rcClient, &amp;rcClient);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; if (tree_.GetSafeHwnd()!=0) {&nbsp;&nbsp;&nbsp; // This is my only child <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tree_.MoveWindow(rcClient);<br>&nbsp;&nbsp;&nbsp; }<br>}<br>]]>
   </description>
   <pubDate>Tue, 25 Nov 2008 05:41:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=43174&amp;title=cxtpmenubar-in-cwnd-derived-child-window#43174</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar in CWnd derived CHILD window : Hi, You have manually reposition...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=43164&amp;title=cxtpmenubar-in-cwnd-derived-child-window#43164</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11019<br /><strong>Posted:</strong> 25 November 2008 at 2:37am<br /><br /><P>Hi,</P><DIV>You have manually reposition all child controls. </DIV>]]>
   </description>
   <pubDate>Tue, 25 Nov 2008 02:37:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=43164&amp;title=cxtpmenubar-in-cwnd-derived-child-window#43164</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar in CWnd derived CHILD window : Hi Oleg,I&amp;#039;ve been able to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=43159&amp;title=cxtpmenubar-in-cwnd-derived-child-window#43159</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3688">BobWansink</a><br /><strong>Subject:</strong> 11019<br /><strong>Posted:</strong> 24 November 2008 at 9:19am<br /><br />Hi Oleg,<br><br>I've been able to make my CMenu appear. Thanks for your help! I still have one problem though. The rest of my program doesn't seem to realize that the menubar is there... After window creation i use <br><br><br>&nbsp; pSubMenu-&gt;LoadMenu(&amp;menu);<br>&nbsp; pSubMenu-&gt;RefreshMenu();<br>&nbsp; RepositionBars(0, 0xffff, AFX_IDW_PANE_FIRST, reposDefault);<br><br>to insert the menu into the panel. <br><br>The menubar is added, but not like a standard menubar. I'd expected the menubar to be placed above the panel, instead of inside it. Now, our own grid is drawn above it. This means that hovering the mouse near coordinate 0,0 of the panel makes a menuitem 'appear' over our grid, and clicking it causes the entire menubar to be redrawn over the grid.<br><br>How do i make the menu behave like a 'normal' menu?<br><br><br>Thanks in advance,<br><br>Bob<br><br>]]>
   </description>
   <pubDate>Mon, 24 Nov 2008 09:19:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=43159&amp;title=cxtpmenubar-in-cwnd-derived-child-window#43159</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar in CWnd derived CHILD window : Thanks Oleg! That was just what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=36841&amp;title=cxtpmenubar-in-cwnd-derived-child-window#36841</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3688">BobWansink</a><br /><strong>Subject:</strong> 11019<br /><strong>Posted:</strong> 17 June 2008 at 3:48am<br /><br />Thanks Oleg! That was just what I needed to make it work. The heroesView.cpp file was very helpful.<br><br>Great support!<br><br>Bob<br>]]>
   </description>
   <pubDate>Tue, 17 Jun 2008 03:48:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=36841&amp;title=cxtpmenubar-in-cwnd-derived-child-window#36841</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar in CWnd derived CHILD window : Hi,  See code of Samples\Too...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=36831&amp;title=cxtpmenubar-in-cwnd-derived-child-window#36831</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11019<br /><strong>Posted:</strong> 17 June 2008 at 12:43am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>See code of Samples\ToolkitPro\Advanced\HeroesView.cpp </DIV><DIV>&nbsp;</DIV><DIV>you need derive from CXTPCommandBarsSiteBase&lt;CWnd&gt; to add InitCommandBars or GetCommandBars methods.</DIV>]]>
   </description>
   <pubDate>Tue, 17 Jun 2008 00:43:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=36831&amp;title=cxtpmenubar-in-cwnd-derived-child-window#36831</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar in CWnd derived CHILD window : Hi Oleg,I still seem to be hitting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=36773&amp;title=cxtpmenubar-in-cwnd-derived-child-window#36773</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3688">BobWansink</a><br /><strong>Subject:</strong> 11019<br /><strong>Posted:</strong> 16 June 2008 at 3:10am<br /><br />Hi Oleg,<br><br>I still seem to be hitting a brick wall. Perhaps I'm missing something here...<br><br>I'm trying to add the CXTPMenuBar to a CWnd derived panel, not CFrameWnd (or CXTFrameWnd). As such, functions like InitCommandBars or GetCommandBars won't work.<br><br>Does the window have to be CFrameWnd derived, or is CWnd derived enough?<br>]]>
   </description>
   <pubDate>Mon, 16 Jun 2008 03:10:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=36773&amp;title=cxtpmenubar-in-cwnd-derived-child-window#36773</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar in CWnd derived CHILD window : Hi,  Yes, you can add CXTPMenuBar....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=36659&amp;title=cxtpmenubar-in-cwnd-derived-child-window#36659</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11019<br /><strong>Posted:</strong> 13 June 2008 at 6:34am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Yes, you can add CXTPMenuBar. See DialogSample or GUI_VisualStudio, with same methods you can add menu for any window.</DIV>]]>
   </description>
   <pubDate>Fri, 13 Jun 2008 06:34:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=36659&amp;title=cxtpmenubar-in-cwnd-derived-child-window#36659</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar in CWnd derived CHILD window : Hi! I&amp;#039;ve been experimenting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=36654&amp;title=cxtpmenubar-in-cwnd-derived-child-window#36654</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3688">BobWansink</a><br /><strong>Subject:</strong> 11019<br /><strong>Posted:</strong> 13 June 2008 at 5:27am<br /><br />Hi! <br><br>I've been experimenting with MFC and Codejock for a while now, and ran into a little trouble. I've got a CWnd derived panel on my SDI application, and I'd like to a menu to it. I've tried to add it using MFC's CWnd::SetMenu, and found out that the function fails, since the panel is created with windowstyle WS_CHILD. GetLastError then produces "Child windows cannot have menus."<br><br>Can I use Codejock to add the menu? if i add a CXTPMenuBar to my CWnd panel, can i use CJ to load and set the menu?<br><br>Thanks!<br><br>Bob<br><br>]]>
   </description>
   <pubDate>Fri, 13 Jun 2008 05:27:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11019&amp;PID=36654&amp;title=cxtpmenubar-in-cwnd-derived-child-window#36654</guid>
  </item> 
 </channel>
</rss>