Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How can I detect the updated size of pane window?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How can I detect the updated size of pane window?

 Post Reply Post Reply
Author
Message
Lee Inwoo View Drop Down
Newbie
Newbie


Joined: 31 July 2010
Location: Korea, South
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lee Inwoo Quote  Post ReplyReply Direct Link To This Post Topic: How can I detect the updated size of pane window?
    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.
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.203 seconds.