![]() |
invalid pane on XTP_DPN_PANEMENUCLICK |
Post Reply ![]() |
Author | |
andolo ![]() Groupie ![]() ![]() Joined: 16 November 2005 Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() Posted: 20 December 2005 at 7:48am |
Hi,
i need yor help please: I want to handle XTP_DPN_PANEMENUCLICK. But when the lParam in this case doesn't point to a valid CXTPDockingPane. What is wrong or how can i get the pane who sends the message? LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam) { CXTPDockingPane* pPane = (CXTPDockingPane*)lParam; switch ((int)wParam) { case XTP_DPN_SHOWWINDOW: // here pPane is valid ![]() break; case XTP_DPN_PANEMENUCLICK: // here pPane is invalid ![]() break; } } |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
because lParam is XTP_DOCKINGPANE_CLICK pointer. XTP_DOCKINGPANE_CLICK* pClick = (XTP_DOCKINGPANE_CLICK*)lParam; lParam depends on wParam value. move CXTPDockingPane* pPane = (CXTPDockingPane*)lParam; to scope of case XTP_DPN_SHOWWINDOW. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
andolo ![]() Groupie ![]() ![]() Joined: 16 November 2005 Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() |
Thanks, that helps! But i could not find it in the documentation. Is there any description for these parameters?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Yes, sorry was not documented :( Use it as: XTP_DOCKINGPANE_CLICK* pClick = (XTP_DOCKINGPANE_CLICK*)lParam; CXTPDockingPane* pPane = pClick->pPane.
ps. structure declaration struct XTP_DOCKINGPANE_CLICK |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |