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

ID of floating pane

 Post Reply Post Reply
Author
Message
Magnetic core View Drop Down
Newbie
Newbie
Avatar

Joined: 22 August 2003
Location: Switzerland
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Magnetic core Quote  Post ReplyReply Direct Link To This Post Topic: ID of floating pane
    Posted: 03 January 2005 at 6:44am

Hello,

DockingPane v9.51

how to get the ID of the selected floating pane in the theme function DrawFloatingTheme(..., CXTPDockingPaneMiniWnd* pane, ..)?

In docking mode with DrawCaption(..., CXTPDockingPaneTabbedContainer* pane, ...), I use pane->GetSelected()->GetID().

Thanks,
Magnetic Core 



Edited by Magnetic core
Back to Top
Magnetic core View Drop Down
Newbie
Newbie
Avatar

Joined: 22 August 2003
Location: Switzerland
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Magnetic core Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2005 at 5:29am

Hello again,

Ok, I have found a solution for my problem. I give the code for this:


CXTPDockingPaneMiniWnd* pMPane = ...;
int iPaneID = -1;

if(pMPane->IsActive()) {
 CXTPDockingPaneSplitterContainer* pSplitterPane = pMPane->GetTopPane();
 if(pSplitterPane != NULL) {
  CXTPDockingPaneBaseList nTabbedList;

  pSplitterPane->FindPane(typeTabbedContainer, &nTabbedList);
  if(nTabbedList.GetCount() == 1) { // Only 1 doc
   POSITION pos = nTabbedList.GetHeadPosition();
   if(pos != NULL) {
    CXTPDockingPaneBase* pPane = nTabbedList.GetNext(pos);
    ASSERT(pPane->GetType() == typeTabbedContainer);
   
    CXTPDockingPane* pSelectedPane = ((CXTPDockingPaneTabbedContainer*)pPane)->GetSelected();
    if(pSelectedPane != NULL)
     iPaneID = pSelectedPane->GetID();
   }
  }
 }
}

Greetings,
Magnetic Core



Edited by Magnetic core
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.125 seconds.