Print Page | Close Window

How to catch "on show" message for pane?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=1242
Printed Date: 21 May 2024 at 8:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to catch "on show" message for pane?
Posted By: rjvaal
Subject: How to catch "on show" message for pane?
Date Posted: 06 October 2004 at 12:12pm

I need a reliable way to catch a message that a pane is being shown.  I have used code like this:

LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)
{
 if (wParam == XTP_DPN_SHOWWINDOW)
 {
  CXTPDockingPane* pPane = (CXTPDockingPane*)lParam;
   ...my code here
 }
}

But this is not sufficient!  If my pane is hidden, I receive a XTP_DPN_SHOWWINDOW message more often than just when it is being shown, I also receive a XTP_DPN_SHOWWINDOW message for the pane when the pane is being hidden.

Where in my pane can I just catch that I am being shown?




Replies:
Posted By: Tweety
Date Posted: 21 October 2004 at 1:16pm

Hi!

Did you find a solution to your problem? I have the same/similar problem: IŽd like to know when a user activates a pane by clicking on the tab to be able to update the contents if necessary. I get an ActivateView if the user clicks in the view, but not on the tab. Please let me know if someone knows how to do this.

Thanks.

 



Posted By: Sven
Date Posted: 22 October 2004 at 10:39am


LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)
{
   if (XTP_DPN_ACTION == wParam)
   {
      XTP_DOCKINGPANE_ACTION* pAction = (XTP_DOCKINGPANE_ACTION*) lParam;
      ASSERT(NULL != pAction);

      if (xtpPaneActionExpanded == pAction->action)
      {
         // your code here   
      }
   }
}




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