Exemplo n.º 1
0
void	CpMyTabCtrl::InitDialogs()
{
	m_Dialogs[0] = new CpLanDlg(GetParent());
	m_Dialogs[0]->Create(CpLanDlg::IDD, GetParent());
	InsertItem(0, _X(IDS_UPDATE));

	m_Dialogs[1] = new CpDialogGames(GetParent());
	m_Dialogs[1]->Create(CpDialogGames::IDD, GetParent());
	InsertItem(1, _X(IDS_GAMES));

	m_Dialogs[2] = new CpDialogNotify(GetParent());
	m_Dialogs[2]->Create(CpDialogNotify::IDD, GetParent());
	InsertItem(2, _X(IDS_NOTIFICATIONS));

	ActivateTabDialogs();
}
Exemplo n.º 2
0
void CInputOutputTabCtrl::InitDialogs()
{
	CRect clientRect;
	GetClientRect(clientRect);
	m_lastSizeX = clientRect.Width();
	m_lastSizeY = clientRect.Height();

	for(int i = 0; i < m_numTabs; i++)
	{
		m_wnds[i]->Create(m_wndIds[i], GetParent());
		m_wnds[i]->SetParent(this);
	}

	for(int i = 0; i < m_numTabs; i++)
		InsertItem(i, m_wndNames[i].GetBuffer());

	ActivateTabDialogs();
}
Exemplo n.º 3
0
void ShapeTabCtrl::OnSelchange(NMHDR* pNMHDR, LRESULT* pResult) 
{
	// TODO: Add your control notification handler code here
	ActivateTabDialogs();
	*pResult = 0;
}
Exemplo n.º 4
0
void	CpMyTabCtrl::ChangeTab(int tabNumber)
{
	SetCurSel(tabNumber);
	ActivateTabDialogs();
}
Exemplo n.º 5
0
void CInputOutputTabCtrl::OnSize(UINT nType, int cx, int cy)
{
	CTabCtrl::OnSize(nType, cx, cy);
	ActivateTabDialogs();
}