Print Page | Close Window

Toolbar visibility and client area change

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=16213
Printed Date: 29 September 2024 at 12:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbar visibility and client area change
Posted By: asparagusx
Subject: Toolbar visibility and client area change
Date Posted: 17 February 2010 at 6:50am
Hello
 
I have a number of toolbars, docked to the top, right and bottom of my application. In a particular mode, I need to hide a toolbar (on the right of the application) and then show another toolbar (it is the same width) also within the right docking area. The overall result, is that the client area does not change. At the moment, I call SetVisible(FALSE) on the toolbar I want to hide and then call SetVisible(TRUE) on the one I want to show. Every time I do this, the client area gets redrawn. How can I 'force' the client area to be a fixed size (e.g. do not change the size) (this is one possible solution). The other is to reposition/display all the tools, without doing an actual redraw, but then only do a redraw when the client area has changed.
 
Asp



Replies:
Posted By: asparagusx
Date Posted: 24 February 2010 at 5:28am
Bump


Posted By: Oleg
Date Posted: 26 February 2010 at 6:52am
Hello,
 
Try set m_bInRecalcLayout of frame to TRUE before and m_bInRecalcLayout  = FALSE after.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net