Redraw Problem with Docking Pane |
Post Reply |
Author | |
douglashogan
Groupie Joined: 02 July 2003 Location: Switzerland Status: Offline Points: 62 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
try to add this code: BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS; return TRUE; |
|
douglashogan
Groupie Joined: 02 July 2003 Location: Switzerland Status: Offline Points: 62 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Try to add clip styles to all child windows, if it no helps send me executable (or cutted sources) to oleg@codejock.com
|
|
douglashogan
Groupie Joined: 02 July 2003 Location: Switzerland Status: Offline Points: 62 |
Post Options
Thanks(0)
|
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 |
|
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 |