Print Page | Close Window

Auto-hide pane display bad when the view refresh

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=15725
Printed Date: 30 January 2025 at 9:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Auto-hide pane display bad when the view refresh
Posted By: guanbin
Subject: Auto-hide pane display bad when the view refresh
Date 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







Replies:
Posted By: Oleg
Date Posted: 27 November 2009 at 1:57am
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


Posted By: guanbin
Date Posted: 27 November 2009 at 10:27pm
Yes! It works!
Thanks very much!


Posted By: jpnascim
Date Posted: 12 July 2011 at 4:00pm
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



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