Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Dynamic pane re-pin painting bug?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dynamic pane re-pin painting bug?

 Post Reply Post Reply
Author
Message
fishy View Drop Down
Newbie
Newbie
Avatar

Joined: 26 October 2005
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote fishy Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
fishy View Drop Down
Newbie
Newbie
Avatar

Joined: 26 October 2005
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote fishy Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
simus View Drop Down
Groupie
Groupie


Joined: 08 July 2005
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote simus Quote  Post ReplyReply Direct Link To This Post Posted: 14 November 2005 at 10:29am

Hi,

Got exactly the same problem and you solve it.

Many, many, many thanks to you

Back to Top
nicolnie View Drop Down
Newbie
Newbie


Joined: 19 September 2004
Location: China
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote nicolnie Quote  Post ReplyReply Direct Link To This Post Posted: 17 November 2005 at 10:26pm
I meet the same problem, so thanks to you.
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.047 seconds.