void CSideWnd::ShowRelatedTabsForView(int viewID) { ClearTabs(); m_wndTabs.AddTab(&m_wndLogTab, TEXT("日志")); IDwarfViewInfo* pView = CDwarfViewProvider::GetInstance()[viewID]; if(!pView) return; m_Context.MainViewID = viewID; std::auto_ptr<IEnumerator<IDwarfViewInfo*>> pEnumView(pView->EnumReleatedView()); if(!pEnumView.get()) return; TTRACE(TEXT("初始化附加视图列表 ================\n")); while(pEnumView->MoveNext()) { CDwarfSideTab* tab = GetDwarfSideTab(pEnumView->Current()->GetViewID(), true); TTRACE(TEXT("\t%d - 0X%08X\n"), tab->GetViewID(), tab->GetSafeHwnd()); if(tab && -1 == m_wndTabs.GetTabFromHwnd(tab->GetSafeHwnd())) { m_wndTabs.AddTab(tab, pEnumView->Current()->ToString().c_str()); } } }
void TabbedDialog::Close () { if (hDlg) { ClearTabs (); oapiCloseDialog (hDlg); hDlg = NULL; Closed (); } }
wxTabView::~wxTabView() { ClearTabs(true); }
GxTabContainer::~GxTabContainer() { ClearTabs(); }