<?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 : Dock CXTPToolBar at bottom of CMDIChildWn</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Dock CXTPToolBar at bottom of CMDIChildWn]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 09 Jun 2026 05:26:11 +0000</pubDate>
  <lastBuildDate>Thu, 04 Mar 2004 12:56:04 +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=480</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[Dock CXTPToolBar at bottom of CMDIChildWn : call ModifyBarStyle instead ModifyStyle....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=480&amp;PID=1242&amp;title=dock-cxtptoolbar-at-bottom-of-cmdichildwn#1242</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 480<br /><strong>Posted:</strong> 04 March 2004 at 12:56pm<br /><br /><P>call ModifyBarStyle instead <FONT face="Courier New" size=2>ModifyStyle</FONT>.&nbsp; </P><P>set XTP_COMMANDBARS_OPTIONS::bShowExpandButtonAlways = FALSE</P>]]>
   </description>
   <pubDate>Thu, 04 Mar 2004 12:56:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=480&amp;PID=1242&amp;title=dock-cxtptoolbar-at-bottom-of-cmdichildwn#1242</guid>
  </item> 
  <item>
   <title><![CDATA[Dock CXTPToolBar at bottom of CMDIChildWn : Came up with another approach...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=480&amp;PID=1188&amp;title=dock-cxtptoolbar-at-bottom-of-cmdichildwn#1188</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=388">CamG</a><br /><strong>Subject:</strong> 480<br /><strong>Posted:</strong> 29 February 2004 at 2:57am<br /><br /><P><FONT size=2>Came up with another approach which gives better results, but not quite right yet...<BR></FONT></P><P><FONT face="Courier New, Courier, mono" size=2>int CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) <BR>{<BR>&nbsp;if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>&nbsp;CXTPCommandBars* pCommandBars = CXTPCommandBars::CreateCommandBars();</FONT></P><P><FONT face="Courier New, Courier, mono" size=2> &nbsp;pCommandBars-&gt;GetCommandBarsOptions()-&gt;bSyncFloa tingBars = TRUE;<BR> &nbsp;pCommandBars-&gt;GetCommandBarsOptions()-&gt;bDblClick Float = FALSE;<BR>&nbsp;pCommandBars-&gt;SetSite(this);<BR>&nbsp;pCommandBars-&gt;EnableDocking();</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;&nbsp; &nbsp;// Create ToolBar<BR>&nbsp;CXTPToolBar* pToolBar = (CXTPToolBar*)pCommandBars-&gt;Add(_T("EditorTools"), xtpBarBottom);</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>&nbsp;if (!pToolBar || !pToolBar-&gt;LoadToolBar(IDR_CHILDFRAME))<BR>&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;TRACE0("Failed to create toolbar\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<BR>&nbsp;}</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>&nbsp;pToolBar-&gt;ModifyStyle(CBRS_GRIPPER, 0);<BR>&nbsp;pToolBar-&gt;SetFlags(xtpFlagStretched);<BR>&nbsp;<BR>&nbsp;return 0;<BR>}<BR></FONT></P><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>The toolbar is now a proper child of the MDIChildWnd and is docked bottom, but hiding the gripper and customise toolbar button is proving to be problematic. The call to pToolBar-&gt;ModifyStyle(CBRS_GRIPPER, 0) has no effect.</FONT></P><P><FONT size=2></FONT>&nbsp;</P>]]>
   </description>
   <pubDate>Sun, 29 Feb 2004 02:57:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=480&amp;PID=1188&amp;title=dock-cxtptoolbar-at-bottom-of-cmdichildwn#1188</guid>
  </item> 
  <item>
   <title><![CDATA[Dock CXTPToolBar at bottom of CMDIChildWn : One separate toolbar per child...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=480&amp;PID=1185&amp;title=dock-cxtptoolbar-at-bottom-of-cmdichildwn#1185</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=388">CamG</a><br /><strong>Subject:</strong> 480<br /><strong>Posted:</strong> 28 February 2004 at 11:36pm<br /><br /><P>One separate toolbar per child window, docked and fixed (no grab handle, customisation, etc.).</P><P>I have&nbsp;several doc views, and the view loaded into the child window will&nbsp;set the&nbsp;toolbar's configuration (i.e. selects which toolbar resource is loaded).</P>]]>
   </description>
   <pubDate>Sat, 28 Feb 2004 23:36:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=480&amp;PID=1185&amp;title=dock-cxtptoolbar-at-bottom-of-cmdichildwn#1185</guid>
  </item> 
  <item>
   <title><![CDATA[Dock CXTPToolBar at bottom of CMDIChildWn : Are you looking to have one toolbar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=480&amp;PID=1182&amp;title=dock-cxtptoolbar-at-bottom-of-cmdichildwn#1182</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 480<br /><strong>Posted:</strong> 28 February 2004 at 11:16pm<br /><br />Are you looking to have one toolbar that is docked at the bottom of themain MDI form that will be under the child window?&nbsp; Or do you wanta separate toolbar for each child window that is docked to the bottomof each window?]]>
   </description>
   <pubDate>Sat, 28 Feb 2004 23:16:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=480&amp;PID=1182&amp;title=dock-cxtptoolbar-at-bottom-of-cmdichildwn#1182</guid>
  </item> 
  <item>
   <title><![CDATA[Dock CXTPToolBar at bottom of CMDIChildWn : Scenario: MDI application, want...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=480&amp;PID=1181&amp;title=dock-cxtptoolbar-at-bottom-of-cmdichildwn#1181</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=388">CamG</a><br /><strong>Subject:</strong> 480<br /><strong>Posted:</strong> 28 February 2004 at 9:09pm<br /><br /><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Scenario: MDI application, want to dock toolbar at bottom of child window. CChildFrame is derived from CMDIChildWnd, and m_wndToolBar is&nbsp;a CXTPToolBar.</FONT></P><P><FONT face=Verdana size=2>Code below results in toolbar docked at top - anyone with any ideas as to why? I even threw in a <FONT face="Verdana, Arial, Helvetica, sans-serif">call to RepositionBars()&nbsp;for</FONT> good measure.</FONT></P><P>&nbsp;</P><FONT color=#0000ff><P><FONT face="Courier New, Courier, mono" size=2>int</FONT></FONT><FONT face="Courier New, Courier, mono" size=2> CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)<BR>{</FONT></P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT face="Courier New, Courier, mono" color=#0000ff size=2>if</FONT><FONT size=2><FONT face="Courier New, Courier, mono"> (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)<BR>&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>return</FONT></FONT><FONT face="Courier New, Courier, mono"> -1;</FONT></FONT></P></BLOCKQUOTE><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT face="Courier New, Courier, mono" size=2>EnableDocking(CBRS_ALIGN_BOTTOM);</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>m_wndToolBar.SetFlags(xtpFlagStretched | xtpFlagAlignBottom);</FONT></P><P><FONT size=2><FONT face="Courier New, Courier, mono">VERIFY(m_wndToolBar.CreateToolBar(WS_CHILD|CBRS_TOOLTIPS|CBR S_ALIGN_BOTTOM|CBRS_BOTTOM, </FONT><FONT face="Courier New, Courier, mono" color=#0000ff>this</FONT><FONT face="Courier New, Courier, mono">, AFX_IDW_TOOLBAR));</FONT></FONT></P><P><FONT face="Courier New, Courier, mono" size=2>VERIFY(m_wndToolBar.LoadToolBar(IDR_MAINFRAME, TRUE));</FONT></P><P><FONT face="Courier New, Courier, mono" size=2></FONT></P><P><FONT face="Courier New, Courier, mono" size=2>m_wndToolBar.SetPosition(xtpBarBottom);<BR></FONT><FONT face="Courier New, Courier, mono" size=2>m_wndToolBar.SetVisible(TRUE);</FONT></P><P><FONT size=2><FONT face="Courier New, Courier, mono">RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);<BR><BR></FONT><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>return</FONT> 0;</FONT></FONT></P></BLOCKQUOTE><P dir=ltr><FONT face="Courier New, Courier, mono" size=2>}</FONT></P><span style="font-size:10px"><br /><br />Edited by CamG</span>]]>
   </description>
   <pubDate>Sat, 28 Feb 2004 21:09:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=480&amp;PID=1181&amp;title=dock-cxtptoolbar-at-bottom-of-cmdichildwn#1181</guid>
  </item> 
 </channel>
</rss>