Pin CXTPDockingPane Programmatically |
Post Reply |
Author | |
AliRafiee
Groupie Joined: 06 May 2004 Status: Offline Points: 32 |
Post Options
Thanks(0)
Posted: 17 October 2005 at 11:36pm |
Hi Everyone, I have an SDI application with a couple of CXTPDockingPanes. What I am trying to do is pin down a pane programmatically , when the user want's to show a the pane that has been unpinned before, the reason is I when the pane is extended out it cannot block the main view (it is showing the a video), so I need to pin it so that it will resize the main view. I am catching the XTP_DPN_ACTION, but don't know what to do there. Thanks Ali Rafiee Edited by AliRafiee |
|
AliRafiee
Groupie Joined: 06 May 2004 Status: Offline Points: 32 |
Post Options
Thanks(0)
|
So far I have something working by doing this LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam) else if (wParam == XTP_DPN_ACTION)
If anyone has a better way, please let me know. |
|
Barto
Groupie Joined: 27 February 2005 Location: Germany Status: Offline Points: 60 |
Post Options
Thanks(0)
|
what about just using ShowPane() to pin, HidePane() to unpin. works for me :) |
|
AliRafiee
Groupie Joined: 06 May 2004 Status: Offline Points: 32 |
Post Options
Thanks(0)
|
I tried ShowPane, but it did something weird, the pane was not pinned, and it wasn't floating either, it was kinda in mid-air.
Ali |
|
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 |