Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Auto-hide pane display bad when the view refresh
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Auto-hide pane display bad when the view refresh

 Post Reply Post Reply
Author
Message
guanbin View Drop Down
Newbie
Newbie


Joined: 02 November 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote guanbin Quote  Post ReplyReply Direct Link To This Post Topic: Auto-hide pane display bad when the view refresh
    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




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: 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
Back to Top
guanbin View Drop Down
Newbie
Newbie


Joined: 02 November 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote guanbin Quote  Post ReplyReply Direct Link To This Post Posted: 27 November 2009 at 10:27pm
Yes! It works!
Thanks very much!
Back to Top
jpnascim View Drop Down
Groupie
Groupie
Avatar

Joined: 17 November 2006
Location: Brazil
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpnascim Quote  Post ReplyReply Direct Link To This Post 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
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.156 seconds.