Auto-hide pane display bad when the view refresh |
Post Reply |
Author | |
guanbin
Newbie Joined: 02 November 2009 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 26 November 2009 at 3:49am |
When the mouse move to the tab of a auto-hide pane, the auto-hide pane displayed very good.
and the the view window refreshed, it seems that some part of the auto-hide pane was replaced. And it looks bad.... How to prevent this to happen? Any advices are appreciated! Thanks! guanbin 2009.11.26 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Add Clip styles for your FRame and View. Something like
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs if( !CMDIChildWnd::PreCreateWindow(cs) )
return FALSE; cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;
return TRUE;
} |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
guanbin
Newbie Joined: 02 November 2009 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Yes! It works!
Thanks very much! |
|
jpnascim
Groupie Joined: 17 November 2006 Location: Brazil Status: Offline Points: 12 |
Post Options
Thanks(0)
|
I was having an analog problem with my application. And the solution provided above solved it.
Just to describe the problem: The application has a central view area which is constantly updated (openGL) surrounded by 3 docking panes (left, right and bottom). When these panels are hidden, everything is updated normally and the central view resizes itself accordingly. As soon as user hovers the mouse over the tabs of the hidden panes and a docking pane slides back to show itself, it is draw incorrectly as if "under" the central view area and flickering. Thanks, João Pedro |
|
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 |