Print Page | Close Window

Pin CXTPDockingPane Programmatically

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=3054
Printed Date: 12 December 2024 at 3:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Pin CXTPDockingPane Programmatically
Posted By: AliRafiee
Subject: Pin CXTPDockingPane Programmatically
Date 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




Replies:
Posted By: AliRafiee
Date Posted: 18 October 2005 at 12:07am

So far I have something working by doing this

LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)
{
....

 else if (wParam == XTP_DPN_ACTION)
 {
  XTP_DOCKINGPANE_ACTION* pAction = (XTP_DOCKINGPANE_ACTION*)lParam;
  if (pAction->action == xtpPaneActionExpanded)
  {
   if (pAction->pPane->GetDockingPaneManager()->IsPaneClo sed(pAction->pPane->GetID()) || pAction->pPane->GetDockingPaneManager()->IsPaneHidd en(pAction->pPane->GetID()))
   {
    m_paneManager.ToggleAutoHide(pAction ->pPane);
   }
   return TRUE;
  }
 }
....
}

 

If anyone has a better way, please let me know.



Posted By: Barto
Date Posted: 18 October 2005 at 4:31am

what about just using ShowPane() to pin, HidePane() to unpin.

works for me :)



Posted By: AliRafiee
Date Posted: 18 October 2005 at 12:08pm

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




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