Toolbar visibility and client area change |
Post Reply |
Author | |
asparagusx
Groupie Joined: 06 February 2007 Status: Offline Points: 53 |
Post Options
Thanks(0)
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
|
|
asparagusx
Groupie Joined: 06 February 2007 Status: Offline Points: 53 |
Post Options
Thanks(0)
|
Bump
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Try set m_bInRecalcLayout of frame to TRUE before and m_bInRecalcLayout = FALSE after.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |