Print Page | Close Window

CXTPDockingPaneAutoHideWnd::OnTimer issue

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=420
Printed Date: 29 April 2024 at 11:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPDockingPaneAutoHideWnd::OnTimer issue
Posted By: JamesC
Subject: CXTPDockingPaneAutoHideWnd::OnTimer issue
Date 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?



Replies:
Posted By: vladsch
Date 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.

http://forum.codejock.com/uploads/vladsch/7D4_DockingPaneAutoHide2.zip - 7D4_DockingPaneAutoHide2.zip




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net