![]() |
Dynamic pane re-pin painting bug? |
Post Reply
|
| Author | |
fishy
Newbie
Joined: 26 October 2005 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Topic: Dynamic pane re-pin painting bug?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 ![]() |
|
![]() |
|
fishy
Newbie
Joined: 26 October 2005 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
simus
Groupie
Joined: 08 July 2005 Status: Offline Points: 43 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 November 2005 at 10:29am |
|
Hi, Got exactly the same problem and you solve it. Many, many, many thanks to you |
|
![]() |
|
nicolnie
Newbie
Joined: 19 September 2004 Location: China Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 November 2005 at 10:26pm |
|
I meet the same problem, so thanks to you.
|
|
![]() |
|
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 |