<?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 n&#111;n-client-area ???</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CXTPMenuBar in n&#111;n-client-area ???]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 12:46:15 +0000</pubDate>
  <lastBuildDate>Tue, 28 Dec 2004 06:11:01 +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=1591</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 n&#111;n-client-area ??? : Hi Oleg!  I found out about...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1591&amp;PID=4547&amp;title=cxtpmenubar-in-nonclientarea#4547</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=633">hpesata</a><br /><strong>Subject:</strong> 1591<br /><strong>Posted:</strong> 28 December 2004 at 6:11am<br /><br />Hi Oleg!<br><br>I found out about the&nbsp; WS_EX_CLIENTEDGE flag which has to be cleared<br>within PreCreateWindow() of my frame-window and the menu ins now displayed<br>right below the caption.<br><br>I also found out about the xtpFlagStretched for my menubar and it is now fixed.<br><br>in my app I managed to write code, so that the size of my frame-window always<br>is limited to the size of the caption+borders+menu by overriding WM_GETMINMAXINFO<br>and calculating the appropriate size.<br><br>thsi worked well for the MFC-menu, but how can I do this wit Xtreme Toolkit Pro ?<br>how can I get the size of the menubar ?<br><br>this size can change if the user reduces the cx-size of my frame-window and the<br>menu afterwards contains multiple lines and therefore has an effect on the cy-size.<br><br>WIN32 offers GetMenuItemRect() to get the position/size of an menu-entry which helped<br>me to determien the number of lines of my menu.<br><br>how can I use this approch with Xtreme Toolkit Pro ?<br><br>thanx in advance!<br><br>best regards,<br>Hans<br><br>]]>
   </description>
   <pubDate>Tue, 28 Dec 2004 06:11:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1591&amp;PID=4547&amp;title=cxtpmenubar-in-nonclientarea#4547</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar in n&#111;n-client-area ??? : Hi Oleg!  Thanx for your reply!  I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1591&amp;PID=4544&amp;title=cxtpmenubar-in-nonclientarea#4544</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=633">hpesata</a><br /><strong>Subject:</strong> 1591<br /><strong>Posted:</strong> 28 December 2004 at 4:21am<br /><br />Hi Oleg!<br><br>Thanx for your reply!<br><br>I am now using GetCommandBars()-&gt;SetMenu("Menu", 0) and<br> GetComamndBars()-&gt;GetMenuBar()-&gt;LoadMenu(&amp;mymenu , TRUE); and this works.<br><br>but how can I make the menubar non-dockable and being displayed right under<br>the caption of my frame-window like in the DialogSample or other samples ?<br><br>in my case the menubar is displayed WITHIN the frame of the client-area.<br>maybe I have to use different window-styles for my frame-window ?<br><br>thanx in advance!<br><br>best regards,<br>Hans<br><br>]]>
   </description>
   <pubDate>Tue, 28 Dec 2004 04:21:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1591&amp;PID=4544&amp;title=cxtpmenubar-in-nonclientarea#4544</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar in n&#111;n-client-area ??? : You can use0 as parameter instead...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1591&amp;PID=4542&amp;title=cxtpmenubar-in-nonclientarea#4542</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1591<br /><strong>Posted:</strong> 27 December 2004 at 11:51pm<br /><br /><P>You can use&nbsp;0 as parameter instead dummy resource:</P><P>GetCommandBars()-&gt;SetMenu(_T("Menu Bar"), 0) </P><P>to Add controls:</P><P>pMenuBar-&gt;GetControls()-&gt;Add(xtpControlButton, nID1);</P><P>pMenuBar-&gt;GetControls()-&gt;Add(xtpControlButton, nID2);</P><P>....</P><P>&nbsp;</P><P>You can't make it nonclient.</P>]]>
   </description>
   <pubDate>Mon, 27 Dec 2004 23:51:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1591&amp;PID=4542&amp;title=cxtpmenubar-in-nonclientarea#4542</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar in n&#111;n-client-area ??? : Hi!  I am currently trying to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1591&amp;PID=4541&amp;title=cxtpmenubar-in-nonclientarea#4541</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=633">hpesata</a><br /><strong>Subject:</strong> 1591<br /><strong>Posted:</strong> 27 December 2004 at 8:21am<br /><br />Hi!<br><br>I am currently trying to use Xtreme Toolkit Pro with an existing VC++.NET/MFC app.<br>our app hast just a single CFrameWnd based window with no document/view stuff.<br><br>I managed to convert our existing dynamic CMenu-structure (read from aXML-file) into the XTP-stuff. altough I still couldnt figure out how tocreate everything from scratch and convert it.<br>I am still using a dummy-resource-menu withGetCommandBars()-&gt;SetMenu(_T("Menu Bar"), IDR_MENU1) to create theCXTPCommandBar object and use GetControls()-&gt;RemoveAll()<br>afterwards. I would prefer to create all objects from scratch without the dummy-resource-menu.<br><br>I realized, that the office-2003 style menu is displayed within the client-area of<br>my window and I would like to have it dispalyed within the non-client-area as it is with<br>the MFC-menu.<br><br>how can I do that ?<br><br>my app-window doesnt need a client-area, it just displays the menu and probably a toolbar.<br><br>any help with this woudl be greatly appreciated,<br>thanx in advance!<br><br>best regards,<br>Hans<br><br>]]>
   </description>
   <pubDate>Mon, 27 Dec 2004 08:21:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1591&amp;PID=4541&amp;title=cxtpmenubar-in-nonclientarea#4541</guid>
  </item> 
 </channel>
</rss>