<?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 : Toolbars &amp; DockWindow positi&#111;n problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Toolbars &amp; DockWindow positi&#111;n problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 09 Jun 2026 00:11:18 +0000</pubDate>
  <lastBuildDate>Thu, 07 Mar 2013 07:23:41 +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=67</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[Toolbars &amp; DockWindow positi&#111;n problem : Hi Support,I am also facing the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=69949&amp;title=toolbars-dockwindow-position-problem#69949</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7957">karthi_sl</a><br /><strong>Subject:</strong> 67<br /><strong>Posted:</strong> 07 March 2013 at 7:23am<br /><br />Hi Support,<br><br>I am also facing the same problem in CDockBar repositioning problem. we are using older version (2002 release) of Xtreme Toolkit.<br><br>Is this problem fixed in Latest release ?<br><br>If this is fixed, it will be helpful if you provide the nature of bug fix.<br><br>Thanks <br>Karthi<br>]]>
   </description>
   <pubDate>Thu, 07 Mar 2013 07:23:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=69949&amp;title=toolbars-dockwindow-position-problem#69949</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbars &amp; DockWindow positi&#111;n problem :  We came across this problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=5714&amp;title=toolbars-dockwindow-position-problem#5714</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=327">rwfearnley</a><br /><strong>Subject:</strong> 67<br /><strong>Posted:</strong> 14 March 2005 at 6:44am<br /><br /><FONT size=2><P>We came across this problem ages ago &amp; I am surprised its not been fixed yet. To be fair I think this is also a problem in standard MFC implementation as well (or was when we came across it).</P><P>It happens because the Dock Bar layout recalculation can be called when the window is minimized. As the window width is zero at that time, it causes the function to automatically wrap all the toolbars onto separate lines (which is by design if you set the width of a normal window so the toolbars do not fit). As it stands they do not snap back when the window is restored.</P><P>We worked around this by overriding the CXTDockBar::CalcFixedLayout and temporarily overriding the stored window size before calling the base class implementation, like this:</P></FONT><FONT face="Courier New" color=#008000 size=2><P> //////////////////////////////////////////////////////////// /////////////////</P><P>// CHyDockBar - to override toolbar layout function to stop wrapping</P></FONT><FONT face="Courier New" color=#0000ff size=2><P>class</FONT><FONT face="Courier New" size=2> CHyDockBar : </FONT><FONT face="Courier New" color=#0000ff size=2>public</FONT><FONT face="Courier New" size=2> CXTDockBar</P><P>{</P></FONT><FONT face="Courier New" color=#0000ff size=2><P>public</FONT><FONT face="Courier New" size=2>:</P><P></FONT><FONT face="Courier New" color=#0000ff size=2>virtual</FONT><FONT face="Courier New" size=2> CSize CalcFixedLayout(BOOL bStretch, BOOL bHorz);</P><P>DECLARE_MESSAGE_MAP()</P><P>};</P><P>&nbsp;</P><P>CSize CHyDockBar::CalcFixedLayout(BOOL bStretch, BOOL bHorz)</P><P>{</P><P></FONT><FONT face="Courier New" color=#008000 size=2>// Defeat toolbar 'wrapping' by temporarily pretending that the client area is big</P></FONT><FONT face="Courier New" size=2><P>CRect rectLayoutTemp = m_rectLayout;</P><P>m_rectLayout.SetRect(0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN));</P><P>CSize size = CXTDockBar::CalcFixedLayout(bStretch, bHorz);</P><P>m_rectLayout = rectLayoutTemp;</P><P></FONT><FONT face="Courier New" color=#0000ff size=2>return</FONT><FONT face="Courier New" size=2> size;</P><P>}</P><P>Unfortunately you cannot specify the DockBar class the standard XT Toolkit / MFC functions create, so you have do this yourself:</P></FONT><FONT face="Courier New" color=#008000 size=2><P>// NB Overrides standard MFC function to allow creation of derived CDockBar class</P><P>// in order to defeat 'toolbar wrapping' effect</P></FONT><FONT face="Courier New" color=#0000ff size=2><P>void</FONT><FONT face="Courier New" size=2> CMainFrame::EnableDocking(DWORD dwDockStyle)</P><P>{</P><P></FONT><FONT face="Courier New" color=#008000 size=2>// must be CBRS_ALIGN_XXX or CBRS_FLOAT_MULTI only</P></FONT><FONT face="Courier New" size=2><P>ASSERT((dwDockStyle &amp; ~(CBRS_ALIGN_ANY|CBRS_FLOAT_MULTI)) == 0);</P><P>m_pFloatingFrameClass = RUNTIME_CLASS(CMiniDockFrameWnd);</P><P></FONT><FONT face="Courier New" color=#0000ff size=2>for</FONT><FONT face="Courier New" size=2> (</FONT><FONT face="Courier New" color=#0000ff size=2>int</FONT><FONT face="Courier New" size=2> i = 0; i &lt; 4; i++)</P><P>{</P><P></FONT><FONT face="Courier New" color=#0000ff size=2>if</FONT><FONT face="Courier New" size=2> (dwDockBarMap<em>&#091;1&#093; &amp; dwDockStyle &amp; CBRS_ALIGN_ANY)</P><P>{</P><P>CXTDockBar *pDock = (CXTDockBar *)GetControlBar(dwDockBarMap<em>&#091;0&#093;);</P><P></FONT><FONT face="Courier New" color=#0000ff size=2>if</FONT><FONT face="Courier New" size=2> (pDock == NULL)</P><P>{</P><P>pDock = </FONT><FONT face="Courier New" color=#0000ff size=2>new</FONT><FONT face="Courier New" size=2> CHyDockBar;</P><P></FONT><FONT face="Courier New" color=#0000ff size=2>if</FONT><FONT face="Courier New" size=2> (!pDock-&gt;Create(</FONT><FONT face="Courier New" color=#0000ff size=2>this</FONT><FONT face="Courier New" size=2>,</P><P>WS_CLIPSIBLINGS|WS_CLIPCHILDREN|WS_CHILD|WS_VISIBLE |</P><P>dwDockBarMap<em>&#091;1&#093;, dwDockBarMap<em>&#091;0&#093;))</P><P>{</P><P>AfxThrowResourceException();</P><P>}</P><P>}</P><P>}</P><P>}</P><P>}</P></FONT><FONT size=2><P>The downside is it means the toolbars never automatically wrap when the window is resized, but frankly I prefer this anyway.</P><P>Hope that helps</P></FONT>]]>
   </description>
   <pubDate>Mon, 14 Mar 2005 06:44:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=5714&amp;title=toolbars-dockwindow-position-problem#5714</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbars &amp; DockWindow positi&#111;n problem : This problem still exists in 9.51...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=5623&amp;title=toolbars-dockwindow-position-problem#5623</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=16">kinook</a><br /><strong>Subject:</strong> 67<br /><strong>Posted:</strong> 08 March 2005 at 10:07am<br /><br />This problem still exists in 9.51 (and probably 9.6/601 as well since I don't see anything in the release notes indicating it has been addressed).  Some users are reporting that their customizations of toolbars/menus don't always get saved (the app saves the customizations to the registry).]]>
   </description>
   <pubDate>Tue, 08 Mar 2005 10:07:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=5623&amp;title=toolbars-dockwindow-position-problem#5623</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbars &amp; DockWindow positi&#111;n problem :  Go on! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=3205&amp;title=toolbars-dockwindow-position-problem#3205</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=711">xred</a><br /><strong>Subject:</strong> 67<br /><strong>Posted:</strong> 21 September 2004 at 11:27pm<br /><br /><P><IMG src="http://forum.codejock.com/smileys/smiley32.gif" border="0"></P><P>Go on!</P>]]>
   </description>
   <pubDate>Tue, 21 Sep 2004 23:27:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=3205&amp;title=toolbars-dockwindow-position-problem#3205</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbars &amp; DockWindow positi&#111;n problem : Has anyone managed to find a decent...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=3174&amp;title=toolbars-dockwindow-position-problem#3174</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=69">MosheY</a><br /><strong>Subject:</strong> 67<br /><strong>Posted:</strong> 19 September 2004 at 11:21pm<br /><br /><P>Has anyone managed to find a decent fix for this? <IMG src="http://forum.codejock.com/smileys/smiley7.gif" border="0"></P><P>This is very annoying!</P>]]>
   </description>
   <pubDate>Sun, 19 Sep 2004 23:21:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=3174&amp;title=toolbars-dockwindow-position-problem#3174</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbars &amp; DockWindow positi&#111;n problem :   Administrator wrote: Hi Yair, This...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=1167&amp;title=toolbars-dockwindow-position-problem#1167</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=108">Kimeli</a><br /><strong>Subject:</strong> 67<br /><strong>Posted:</strong> 27 February 2004 at 4:30am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Administrator" alt="Originally posted by Administrator" style="vertical-align: text-bottom;" /> <strong>Administrator wrote:</strong><br /><br /><P>Hi Yair,</P><P>This is a known problem with the standard toolkit.&nbsp; We are working on correcting this problem over the next couple of releases.</P><P>Regards,<BR>Codejock Support</P><P></td></tr></table> </P><P>Any progress happening? Or quick fix etc?</P>]]>
   </description>
   <pubDate>Fri, 27 Feb 2004 04:30:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=1167&amp;title=toolbars-dockwindow-position-problem#1167</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbars &amp; DockWindow positi&#111;n problem : (copied from a mail sent to support...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=757&amp;title=toolbars-dockwindow-position-problem#757</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=78">pcvuser</a><br /><strong>Subject:</strong> 67<br /><strong>Posted:</strong> 08 January 2004 at 7:20am<br /><br /><P><FONT face=Arial color=#0000ff size=2>(copied from a mail sent to support a few month ago)</FONT></P><P><FONT face=Arial color=#0000ff size=2>We managed to trace the problem to your (XT) source code defect. </FONT></P><DIV><FONT size=2><FONT color=#0000ff><FONT face=Arial><SPAN class=003495509-13102003>it seems every time that the bug occurs, these functions are called:<BR></SPAN><SPAN class=003495509-13102003>CmainFrame::RecalcLayout()&nbsp;which calls</SPAN></FONT></FONT></FONT></DIV><DIV><SPAN class=003495509-13102003><FONT face=Arial color=#0000ff size=2>CWnd::RepositionBars(), which calls<BR>CControlBar::OnSizeParent(), which calls,<BR>CXTDockBar::CalcFixedLayout(BOOL bStretch, BOOL bHorz) - this is the problematic function that should be fixed.</FONT></SPAN></DIV><DIV><SPAN class=003495509-13102003><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><DIV><SPAN class=003495509-13102003><FONT face=Arial color=#0000ff><FONT size=2>We bypassed this problem in the meantime (we cought most occurances of the bug, but it still happens rarely), by saving our toolbars positions before the bug occurs (added mesage to save toolbars in <FONT color=#ff0000>XTToolkit is change (XTDockContext.cpp CXTDockContext::Track()) - in &nbsp;case WM_LBUTTONUP:</FONT></FONT></FONT></SPAN></DIV><DIV><SPAN class=003495509-13102003><FONT face=Arial color=#0000ff><FONT color=#0000ff size=2>So we would like you to fix the bug for&nbsp;the next version. </FONT></FONT></SPAN></DIV><DIV><SPAN class=003495509-13102003><FONT face=Arial color=#0000ff><FONT color=#0000ff size=2>Below see more details on the bug:</FONT></FONT></SPAN></DIV><DIV><SPAN class=003495509-13102003><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><DIV><SPAN class=003495509-13102003><FONT face=Arial color=#0000ff><FONT size=2>We managed to define two different scenarios when the bug&nbsp; occurs (there are others which we don't know how to recreate)</FONT></FONT></SPAN></DIV><DIV><SPAN class=003495509-13102003><FONT face=Arial color=#0000ff size=2>You can use the&nbsp;"GUI_VisualStudio6" sample to recreate the problem:</FONT></SPAN></DIV><DIV><SPAN class=003495509-13102003><FONT size=+0><FONT size=2><FONT size=1><P><FONT face=Arial color=#0000ff size=2>A. 1.&nbsp;<SPAN class=003495509-13102003>move the toolbars in the application, then </SPAN>minimize the&nbsp;<SPAN class=003495509-13102003>application w</SPAN>indow.</FONT></P><P><FONT face=Arial><FONT color=#0000ff size=2>2. enlarge the toolbars at the bottom of the screen to 2 </FONT><FONT color=#0000ff size=2>lines.</FONT></FONT></P><P><FONT face=Arial color=#0000ff size=2>3. decrease the height of the toolbars to one line.</FONT></P><P><FONT face=Arial><FONT color=#0000ff size=2>4. again, enlarge the toolbars at the bottom of the screen to </FONT><FONT color=#0000ff size=2>2 lines.</FONT></FONT></P><P><SPAN class=003495509-13102003><FONT face=Arial color=#0000ff size=2>5. reopen the application, and see the toolbars/dock windows moved</FONT></SPAN></P><P><SPAN class=003495509-13102003><FONT color=#0000ff size=2><FONT face=Arial>B. <FONT size=2>in windows 2000&nbsp;you should right click onthe desktop and go to screen saver-&gt;power and change the settings of monitor standby. </FONT></FONT></FONT></SPAN><SPAN class=003495509-13102003><FONT color=#0000ff size=2><FONT size=2><FONT face=Arial>This will mix up the&nbsp;windows and toolbars</FONT></FONT></FONT></SPAN></P><P><SPAN class=003495509-13102003><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</P><P><SPAN class=003495509-13102003><FONT face=Arial color=#0000ff size=2>Yair</FONT></SPAN></P></FONT></FONT></FONT></SPAN></DIV>]]>
   </description>
   <pubDate>Thu, 08 Jan 2004 07:20:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=757&amp;title=toolbars-dockwindow-position-problem#757</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbars &amp; DockWindow positi&#111;n problem : One of users has found a way to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=754&amp;title=toolbars-dockwindow-position-problem#754</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=23">Cezariusz</a><br /><strong>Subject:</strong> 67<br /><strong>Posted:</strong> 07 January 2004 at 10:33am<br /><br />One of users has found a way to reproduce the error:<br>Run "GUI Visual Studio 7 Demo", arrange toolbars and docking windows innon standard way (for example toolbars in one row, docks in onecolumn). Minimize the application, change the size of the taskbar (makesure it's not auto-hide), restore the application. You will see thelayout completely messed up.<br>Hope it will help the support to find a solution.<br>]]>
   </description>
   <pubDate>Wed, 07 Jan 2004 10:33:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=754&amp;title=toolbars-dockwindow-position-problem#754</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbars &amp; DockWindow positi&#111;n problem : Users are getting more and more...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=573&amp;title=toolbars-dockwindow-position-problem#573</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=23">Cezariusz</a><br /><strong>Subject:</strong> 67<br /><strong>Posted:</strong> 28 November 2003 at 12:20pm<br /><br />Users are getting more and more nervous about this bug. Any chance for a quick fix?]]>
   </description>
   <pubDate>Fri, 28 Nov 2003 12:20:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=573&amp;title=toolbars-dockwindow-position-problem#573</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbars &amp; DockWindow positi&#111;n problem : I have the same problem and it&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=517&amp;title=toolbars-dockwindow-position-problem#517</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=23">Cezariusz</a><br /><strong>Subject:</strong> 67<br /><strong>Posted:</strong> 12 November 2003 at 4:28am<br /><br /><P>I have the same problem and it's very annoying both for me and my users. I have reported it several times for each version of XT standard since 1.9.0.</P><P>I've tried to find a workaround, but it's quite difficult because the problem occures on random ocasions. Usually when the application is in the background for the long time, after using Win+M or Win+D to minimize all windows, after screen saver, after hibernating and so on. But I haven't found a way to reproduce the problem on demand in order to debug it.</P><P>One method to reproduce the problem was to quickly minimize and restore application many times, but for that case I have a workaround - override CMainFrame::OnSize and add following code:</P><FONT size=2><P></FONT><FONT face="Courier New, Courier, mono" color=#0000ff size=2>if</FONT><FONT face="Courier New, Courier, mono" size=2> (nType != SIZE_MINIMIZED &amp;&amp; cx &gt; 200 &amp;&amp; cy &gt; 200)<BR>{<BR>&nbsp;&nbsp;&nbsp; CXTMDIFrameWnd::OnSize(nType, cx, cy);<BR>}</FONT></P><P><FONT size=1>Unfortunately it doesn't solve the problem, because unwanted rearanging still happens on other ocasions.</FONT></P>]]>
   </description>
   <pubDate>Wed, 12 Nov 2003 04:28:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=67&amp;PID=517&amp;title=toolbars-dockwindow-position-problem#517</guid>
  </item> 
 </channel>
</rss>