Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Fixing position of tabs
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Fixing position of tabs

 Post Reply Post Reply
Author
Message
tbrezins View Drop Down
Newbie
Newbie


Joined: 01 September 2009
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote tbrezins Quote  Post ReplyReply Direct Link To This Post Topic: Fixing position of tabs
    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
Back to Top
tbrezins View Drop Down
Newbie
Newbie


Joined: 01 September 2009
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote tbrezins Quote  Post ReplyReply Direct Link To This Post 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
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.062 seconds.