How can I detect the updated size of pane window? |
Post Reply |
Author | |
Lee Inwoo
Newbie Joined: 31 July 2010 Location: Korea, South Status: Offline Points: 2 |
Post Options
Thanks(0)
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |