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(); }
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(); }
void ShapeTabCtrl::OnSelchange(NMHDR* pNMHDR, LRESULT* pResult) { // TODO: Add your control notification handler code here ActivateTabDialogs(); *pResult = 0; }
void CpMyTabCtrl::ChangeTab(int tabNumber) { SetCurSel(tabNumber); ActivateTabDialogs(); }
void CInputOutputTabCtrl::OnSize(UINT nType, int cx, int cy) { CTabCtrl::OnSize(nType, cx, cy); ActivateTabDialogs(); }