<?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 : where and when set toolbars right pos</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : where and when set toolbars right pos]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:05:13 +0000</pubDate>
  <lastBuildDate>Thu, 13 Jan 2005 05:30: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=1666</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[where and when set toolbars right pos : I have a problem with my toolbars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1666&amp;PID=4718&amp;title=where-and-when-set-toolbars-right-pos#4718</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=920">nettel</a><br /><strong>Subject:</strong> 1666<br /><strong>Posted:</strong> 13 January 2005 at 5:30am<br /><br />I have a problem with my toolbars in a MDIapplication.<br><br>Like I posted in an other thread, I want to hide/show toolbars dynamic.The problem of using the hide/show commands for the toolbar is, thatthey allways shown in CustomizeDlg for the bars. I solve this problemby remove and add the toolbar in ToolbarList of CommandBarsObject. It'swork. But then there come the next problem.<br>To save the state, position, etc. for customizing I use local varibles.That means, in one way (hide) save the old status and in the other(show) read the status from the variables. Thats OK. I run thisprocedure when the MDIChildWnd activate. So, if the user change theactive document, the toolbar shows/hide in order of the activedocument. <br>When I close the application, I have to save the old status of thetoolbar. In that way, I make the toolbar visible and use theSaveCommandBars(...) function for all my toolbars. Next time I open theapplication the toolbar will be loaded by the LoadCommandBars(..)function. Thats right. <br>And now the problem:<br>The application fired the WM_Activate Message, my handler inCMDIChildWnd get it and try, for instance, to hide the toolbar. In thatway, the toolbar hasn't the right position in the DockingBar. So the myvariables get the wrong values and next time I show the toolbar, itappears somewhere in the DockingBar. If the toolbar has to be visibleat start of the application, there is no problem. The bar is drawing atthe right place. <br>So I think, the problem is to calculate the placement of the toolbarbefore the bar will be removed from the CommandBarList. Is it possibleto do that under my control??<br><br>Have a nice day<br><br>Bernd<br>]]>
   </description>
   <pubDate>Thu, 13 Jan 2005 05:30:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1666&amp;PID=4718&amp;title=where-and-when-set-toolbars-right-pos#4718</guid>
  </item> 
 </channel>
</rss>