Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > General Discussion
  New Posts New Posts RSS Feed - CXTPDockingPaneAutoHideWnd::OnTimer issue
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPDockingPaneAutoHideWnd::OnTimer issue

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


Joined: 03 December 2003
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesC Quote  Post ReplyReply Direct Link To This Post Topic: CXTPDockingPaneAutoHideWnd::OnTimer issue
    Posted: 05 February 2004 at 1:21pm
We have experienced some issues with CXTPDockingPaneAutoHideWnd. It appears that at some point m_pPane gets Nulled out and OnTimer gets called. This blows up on line 193 when m_pPane is dereferenced. Anyone else experience this?
Back to Top
vladsch View Drop Down
Newbie
Newbie


Joined: 04 February 2004
Location: Canada
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote vladsch Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2004 at 11:34am

I have not experienced this but it is possible. If the timing is just right and the CloseWindow is called after a timer message is posted to the window then the OnTimer will fire with the m_pPane member already cleared.

I have made a couple of modifications to the AutoHidePane/Wnd classes to smooth out the animation and get rid of the quick "flash" of the background when docking a hidden pane via the "hide/dock" button.

Incidentally this also fixes your issue because I use m_pPane == 0 to detect when the CXTPDockingPaneAutoHideWnd is supposed to delay close. Oleg told me that the animation mods I sent in were merged into the toolkit source. So they are safe to use. The flash fix is new so no verdict on that yet.

I am attaching the modified files (4) CXTPDockingPaneManager & CXTPDockingPaneAutoHidePanel both .h & .cpp. DiffReport on changes and a short description of the mods.

7D4_DockingPaneAutoHide2.zip

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.