Print Page | Close Window

Fixing position of tabs

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=16611
Printed Date: 31 January 2025 at 3:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Fixing position of tabs
Posted By: tbrezins
Subject: Fixing position of tabs
Date Posted: 19 April 2010 at 10:49am
So I've got an instance where I dock several panes to the bottom so they appear as tabs. However I need to prevent the user from moving/reordering the tabs. Is there any way to do this? I've looked at the docs, especially the CXTPDockingPaneManager and I'm not seeing any options.

-------------
     Product:Toolkit Pro 2009 version 13.1.0
     Platform: Windows XP, Vista, & 7 (32-bit)
     Language: Visual C++ 2005



Replies:
Posted By: tbrezins
Date Posted: 19 April 2010 at 11:15am
And of course after posting this I figured it out so I'll post the answer in case someone else needs it:


LRESULT OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)
{
      if (wParam == XTP_DPN_ACTION)
      {
        XTP_DOCKINGPANE_ACTION* pAction = (XTP_DOCKINGPANE_ACTION*)lParam;
        if(pAction->action == xtpPaneActionDragging) {
            pAction->bCancel=TRUE;
            return 1;
           }
      }
}


-------------
     Product:Toolkit Pro 2009 version 13.1.0
     Platform: Windows XP, Vista, & 7 (32-bit)
     Language: Visual C++ 2005



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