Print Page | Close Window

Dynamic pane re-pin painting bug?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3182
Printed Date: 09 November 2025 at 1:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dynamic pane re-pin painting bug?
Posted By: fishy
Subject: Dynamic pane re-pin painting bug?
Date Posted: 08 November 2005 at 11:16am
Hey all,
I am running into an issue that happens when a pane is docked and then unpinned, then the user clicks on the tab that is created for the pane and pins it again.  The problem is that as soon as the user clicks on the pin button to repin the pane, a duplicate of the pane is drawn just to the right of the pane itself.  If you cause the window to be repainted (resize it for example) then the "garbage pane" disappears and all looks normal again.   I have already tried adding WS_CLIPCHILDREN and WS_CLIPSIBLINGS to the frame and view - didn't help.  The pane contains no control - I originally had a list box in it but removed it just to make sure it wasn't causing the bug.  I need some help here.

I took screenshots of the steps involved.

1.  User clicks on the push pin to unpin the pane


2.  Unpin works great, user clicks tab


3.  Pane is unpinned correctly, user clicks the push pin to re-pin the pane


4.  Pane is re-pinned with the "garbage pane" painted over the view




Replies:
Posted By: fishy
Date Posted: 08 November 2005 at 1:08pm
Okay I found out what was going on.  Since my view is (obviously from the screenshots) a CFormView, the dialog it contains also needs to have the WS_CLIPCHILDREN and WS_CLIPSIBLINGS styles.  When I added to those the CFormView's Dialog, everything worked fine.


Posted By: simus
Date Posted: 14 November 2005 at 10:29am

Hi,

Got exactly the same problem and you solve it.

Many, many, many thanks to you



Posted By: nicolnie
Date Posted: 17 November 2005 at 10:26pm
I meet the same problem, so thanks to you.



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