Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How to catch "on show" message for pane?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to catch "on show" message for pane?

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


Joined: 20 September 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote rjvaal Quote  Post ReplyReply Direct Link To This Post Topic: How to catch "on show" message for pane?
    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?

Back to Top
Tweety View Drop Down
Newbie
Newbie


Joined: 21 October 2004
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tweety Quote  Post ReplyReply Direct Link To This Post 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.

 

Back to Top
Sven View Drop Down
Senior Member
Senior Member


Joined: 21 August 2003
Location: Germany
Status: Offline
Points: 127
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sven Quote  Post ReplyReply Direct Link To This Post 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   
      }
   }
}

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