Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - docking pane do NOT tab
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

docking pane do NOT tab

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


Joined: 25 August 2005
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote DPDP Quote  Post ReplyReply Direct Link To This Post Topic: docking pane do NOT tab
    Posted: 25 August 2005 at 2:10pm

Could someone answer my questions?

1.I need to add a docking pane NOT tabbing into other panes, and

do NOT allow other panes to tab in. Basically it is a stand alone pane to disable

xtpPaneTypeTabbedContainer type

2.And how to make it always on the top if it is floating over other panes.

 

 

Back to Top
DPDP View Drop Down
Newbie
Newbie


Joined: 25 August 2005
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote DPDP Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2005 at 5:06pm

I think I know half the problem. The following code prevent the pane attaching to other pane. But I have not figured out how to prevent other panes attaching into the pane.

if (wParam == XTP_DPN_ACTION)
 {
  XTP_DOCKINGPANE_ACTION* pAction = (XTP_DOCKINGPANE_ACTION*)lParam;

    if (pAction->action == xtpPaneActionAttaching)
  {
   if (pAction->pPane->GetID() == IDR_PANE_TEST_CTRL/*the pane I want to be stand alone*/)
   {
    pAction->bCancel = TRUE;
   }
  }

  return TRUE;
 }

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 25 August 2005 at 11:45pm

Hello,

Some hints:

pAction->pDockContainer is Tabbed Container with docking pane

CXTPDockingPaneTabbedContainer::GetSelected() returns selected pane

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.172 seconds.