Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - frame left over by hidden panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

frame left over by hidden panes

 Post Reply Post Reply
Author
Message
sphr View Drop Down
Newbie
Newbie


Joined: 22 February 2007
Location: Singapore
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote sphr Quote  Post ReplyReply Direct Link To This Post Topic: frame left over by hidden panes
    Posted: 22 February 2007 at 7:09am
I created two panes and docked them to left of main frame with a tabbed client frame window.  When I hide the two panes via code (XTPDockingPane::Hide or XTPDockingPaneManager::HidePane), the hidden panes left behind something that looks like the frame border.  you can even get mouse events and pull it around (but it snaps back into original position after you release mouse).

Can anybody tell me how to get rid of them?  or is there any other functions I should call to make whichever manager object responsible to redraw/refresh/relayout so that the two unwanted border goes away?

attached screenshot ( the unwanted borders leftover from hiding the panes are circled in red)

Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2007 at 6:19pm
Hi;
did you get any reply to this issue?
I have the same problems with my docking panes and MDI tab client windows.
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
sphr View Drop Down
Newbie
Newbie


Joined: 22 February 2007
Location: Singapore
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote sphr Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2007 at 10:06pm
hi. unfortunately, no solutions yet.

I'm beginning to suspect it is the MDITabClient and MDIframeWnd related though.  Mainframe not updating it's layout and doing redraw correctly.  Getting lots of update errors.  (e.g. after adding pane, the mdi client is not refreshed/relayout properly no matter how I tried to call Refresh)

Can anybody point out how I can get an MDIFrameWnd to update it's layout correctly with relation to the Docking Panes?
Back to Top
sphr View Drop Down
Newbie
Newbie


Joined: 22 February 2007
Location: Singapore
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote sphr Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2007 at 10:12pm
hi, just to add another observation(no pic).


The docking panes' position/sizing etc  seems to be correct.  It seems to be that MDI client area which is not updating.  sometimes I get white areas where nobody paints (my suspicion is that somehow, the frame wnd expects it to be painted by the panes but the panes have already docked themselves elsewhere?)

thanks.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2007 at 1:44am
Hello,
 
Can you please patch
void CXTPTabClientWnd::CalcWindowRect(LPRECT lpClientRect, UINT nAdjustType)
 
and comment
pWorkspace->UpdateWindow();
 
 
Redraw called before client size actually changed, think it was reason.
 
Thanks for help.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2007 at 10:05am
Hi,
 
in my case it looks good! Thanks for your help...
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
sphr View Drop Down
Newbie
Newbie


Joined: 22 February 2007
Location: Singapore
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote sphr Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2007 at 12:28am
thanks, I'll try it out and post feedback later.
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.141 seconds.