Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Auto Hide Question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Auto Hide Question

 Post Reply Post Reply
Author
Message Reverse Sort Order
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 Topic: Auto Hide Question
    Posted: 18 March 2004 at 1:45pm

There was little bug in 8.61 version only.

you can patch CXTPDockingPaneAutoHideWnd::CXTPDockingPaneAutoHideWnd:

 pSite->UpdateWindow();
 pSite->SetRedraw(FALSE);

 CreateEx(0, AfxRegisterWndClass(0, hCursor), _T(""),
  WS_CHILD|WS_CLIPSIBLINGS|WS_CLIPCHILDREN, rcClient, pSite, 0);

 pSite->SetRedraw(TRUE);

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
msamocha View Drop Down
Newbie
Newbie
Avatar

Joined: 07 March 2004
Location: Israel
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote msamocha Quote  Post ReplyReply Direct Link To This Post Posted: 18 March 2004 at 10:05am

I tried adding

cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS; to mainFrame's precreatewindow.

this fixed the problem when there are no open documents, but the proble re-emerges when a document is open.

Back to Top
msamocha View Drop Down
Newbie
Newbie
Avatar

Joined: 07 March 2004
Location: Israel
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote msamocha Quote  Post ReplyReply Direct Link To This Post Posted: 18 March 2004 at 9:01am

I have several panes with different sizes auto hidden to the right.

If I show a large pane and then switch to a smaller pane, the area of the old (larger) auto-hidden pane is not redrawn (so i see a part of the old larger pane which is now supposed to be hidden). This is only fixed when I  redraw the area.

Any one have an idea why this happens or how to rectify the problem?

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.125 seconds.