Print Page | Close Window

How can I detect the updated size of pane window?

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=17041
Printed Date: 26 April 2024 at 11:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can I detect the updated size of pane window?
Posted By: Lee Inwoo
Subject: How can I detect the updated size of pane window?
Date Posted: 31 July 2010 at 9:32pm
Hello,
 
I want to detect the updated pane window's size as follows:
 
CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)
    if (wParam == XTP_DPN_ACTION)
        XTP_DOCKINGPANE_ACTION* pAction = (XTP_DOCKINGPANE_ACTION*)lParam;
        switch(pAction->action)
            case xtpPaneActionSplitterResized:
                CXTPDockingPane* pPane = pAction->pPane;
                    unsigned int pane_w = pPane->GetPaneWindowRect().Width();  <--- (a)
                    unsigned int pane_h = pPane->GetPaneWindowRect().Height();
 
I can get the event of internal pane size was changed at point (a).
The issue that I don't know is
   pane_w, pane_h is not updated immediately(i.e. finished dragging of split bar & took off from mouse left click)
   The value of pane_w, pane_h is updated at next time(i.e. when dragged split bar once more)
 
Could anyone that know about this issue help me?
Thanks.



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