void InsertSubTab(TabPane* pTabPane, ButtonPane* pButtonPane, int nPaneID) { if (m_mapPanes.Count() == 0) m_pSubTabCurrent = pTabPane; m_mapSubTabs.Set(nPaneID, pTabPane); InsertPane(pTabPane, pButtonPane, nPaneID); }
void InsertPane(Pane* pPane, ButtonPane* pButtonPane, int nPaneID) { ZAssert(nPaneID != -1); // reserved ZAssert(!m_fShowSelPane); if (m_mapPanes.Count() == 0) { m_nPaneIDCurrent = nPaneID; m_pPaneCurrent = pPane; } m_mapPanes.Set(nPaneID, pPane); m_pButtonBarPane->InsertButton(pButtonPane, nPaneID); }