Print Page | Close Window

Redraw Problem with Docking Pane

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=123
Printed Date: 29 March 2024 at 9:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Redraw Problem with Docking Pane
Posted By: douglashogan
Subject: Redraw Problem with Docking Pane
Date Posted: 08 August 2003 at 4:36am

I use a pinnable docking pane with a tree control inside it to navigate my workspace. Selecting different items on the tree shows and hides views in the SDI workspace area. If the workspace bar is unpinned then when I show a window in the SDI workspace area with CWnd::ShowWindow (SW_SHOW), the windows is displayed over the docking window. This is before the workspace window has retracted.

Is this a drawing clipping problem?

 



-------------
Regards
Douglas Hogan



Replies:
Posted By: Oleg
Date Posted: 09 August 2003 at 1:08am

try to add this code:

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
 if( !CFrameWnd::PreCreateWindow(cs) )
  return FALSE;

 cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;

 return TRUE;
}



Posted By: douglashogan
Date Posted: 09 August 2003 at 6:27am

Tried it before and it doesn't work.

Any window that is obscured by an expanded pinnable window, will draw in the client area of the pinnable window before it retracts. My tree control embedded in a pinnable window selects different windows behind the pinnable window. As these windows are shown and redrawn, they overwrite the pinnable window's tree control. This is before the focus has shifted from the tree control and the pinnable window retracts. I can send an executable with the behaviour.



-------------
Regards
Douglas Hogan


Posted By: Oleg
Date Posted: 10 August 2003 at 4:34am
Try to add clip styles to all child windows, if it no helps send me executable (or cutted sources) to mailto:oleg@codejock.com - oleg@codejock.com


Posted By: douglashogan
Date Posted: 14 August 2003 at 7:15am

OK it's fixed.

I use a splitter window in the SDI mainframe. This needs the styles mentioned above in the call to CreateStatic ();



-------------
Regards
Douglas Hogan



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