Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - [Solved] m_bDrawSingleTab
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Solved] m_bDrawSingleTab

 Post Reply Post Reply
Author
Message
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Topic: [Solved] m_bDrawSingleTab
    Posted: 13 October 2010 at 1:12pm
I've modified the MDIPanes sample as followed:

    // Create docking panes.
    CXTPDockingPane *pPane1 = m_paneManager.CreatePane(
        IDR_PANE_PROPERTIES, CRect(0, 0,210, 120), xtpPaneDockLeft);
   pPane1->SetOptions(xtpPaneNoCaption | xtpPaneNoFloatable);

    CXTPDockingPane *pPane2 = m_paneManager.CreatePane(
        IDR_PANE_PROPERTIES, CRect(0, 0,210, 120), xtpPaneDockLeft);
   pPane2->SetOptions(xtpPaneNoCaption | xtpPaneNoFloatable);

   int nID = IDR_PANE_PROPERTIES;
    m_paneManager.SetIcons(IDB_BITMAP_ICONS, &nID, 1);

    m_paneManager.SetTheme(m_themeCurrent);

   m_paneManager.AttachPane(pPane1, pPane2);

   m_paneManager.HideClient(TRUE);
   CXTPDockingPanePaintManager *pManager = m_paneManager.GetPaintManager();
   pManager->m_bDrawSingleTab = TRUE;
   pManager->GetTabPaintManager()->SetPosition(xtpTabPositionBottom);

If you start the app it will look like this:


You can now split it vertically:



But if you dock the pane on the left and then on the top, the tab is gone!!!









Codejock support
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: 13 October 2010 at 1:31pm
You create 2 panes with same id and trying attach grid to both of them...
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.