Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPDockingPane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPDockingPane

 Post Reply Post Reply
Author
Message
solo View Drop Down
Groupie
Groupie


Joined: 10 November 2007
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote solo Quote  Post ReplyReply Direct Link To This Post Topic: CXTPDockingPane
    Posted: 03 April 2008 at 3:46am
hi,
 
How can I restrict CXTPDockingPane to show docking pane at the bottom only. Means I do not want to user to drag the pane to left, top and right borders of the main window.
 
Thanks
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2008 at 4:13am
Him
 
Catch Action event:
 
f (wParam == XTP_DPN_ACTION)
 {
  XTP_DOCKINGPANE_ACTION* pAction = (XTP_DOCKINGPANE_ACTION*)lParam;

  if (pAction->action == xtpPaneActionDocking)
  {
   if (pAction->pDockContainer->GetType() != xtpPaneTypeTabbedContainer && (pAction->dockDirection != xtpPaneDockLeft && pAction->dockDirection != xtpPaneDockRight))
   {
    pAction->bCancel = TRUE;
   }
  }
  return TRUE;
 }
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
solo View Drop Down
Groupie
Groupie


Joined: 10 November 2007
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote solo Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2008 at 6:39am
Many 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.063 seconds.