Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Toolbar visibility and client area change
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toolbar visibility and client area change

 Post Reply Post Reply
Author
Message
asparagusx View Drop Down
Groupie
Groupie


Joined: 06 February 2007
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote asparagusx Quote  Post ReplyReply Direct Link To This Post Topic: Toolbar visibility and client area change
    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
Back to Top
asparagusx View Drop Down
Groupie
Groupie


Joined: 06 February 2007
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote asparagusx Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2010 at 5:28am
Bump
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.