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

CXTPDockingPane questions

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


Joined: 25 May 2004
Location: Israel
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Irisz Quote  Post ReplyReply Direct Link To This Post Topic: CXTPDockingPane questions
    Posted: 02 June 2004 at 9:13am

Hi,

I have 2 question regarding CXTPDockingPane:

1. Is there a way to remove the caption from a docking pane ?

2. Is there a way to prevent pane from floating ?

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 02 June 2004 at 1:44pm
1.Yes
2.Yes
Back to Top
Irisz View Drop Down
Newbie
Newbie


Joined: 25 May 2004
Location: Israel
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Irisz Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2004 at 1:49am

1. How ???

2. How ???

 

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2004 at 7:43am
    // Get a pointer to IDR_PANE1 and Remove Title.
    CXTPDockingPane* pPane = GetDockingPaneManager()->FindPane(IDR_PANE1);
    ASSERT(pPane);
    if (pPane) {
        pPane->SetTitle(_T(""));
    }
    
    // Get a pointer to IDR_PANE2 and set the title and prevent it from floating.
    pPane = GetDockingPaneManager()->FindPane(IDR_PANE2);
    ASSERT(pPane);
    if (pPane) {
        pPane->SetTitle(_T("Pane 2 - Not Floatable\nPane 2"));
        pPane->SetOptions(xtpPaneNoFloatable);
    }
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: 03 June 2004 at 7:50am

I knew you ask it :)

for 8.70 only:

1.

class CCustomTheme :  public CXTPDockingPaneGripperedTheme
{
 void AdjustCaptionRect(CXTPDockingPaneTabbedContainer* pPane, CRect& rc)
 {
  // Do nothing.

 }
};

m_paneManager.SetCustomTheme(new CCustomTheme()); 

 

2.

pPane->SetOptions(xtpPaneNoFloatable);

ps. how user can float pane without caption?

 

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.