Пример #1
0
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());
		}		
	}
}
Пример #2
0
void TabbedDialog::Close ()
{
	if (hDlg) {
		ClearTabs ();
		oapiCloseDialog (hDlg);
		hDlg = NULL;
		Closed ();
	}
}
Пример #3
0
wxTabView::~wxTabView()
{
  ClearTabs(true);
}
Пример #4
0
GxTabContainer::~GxTabContainer()
{
	ClearTabs();
}