SOLVED: MFC: changing control size [modified]
-
I'm new in MFC. How to dynammically change control size in CFormView? I do this: void CSalesmanView::OnSize(UINT nType, int cx, int cy) { CFormView::OnSize(nType, cx, cy); CTabCtrl * tab = (CTabCtrl *)this->GetDlgItem(IDC_TABMAIN); if (tab != NULL) { tab->SetWindowPos(this,0,0,cx,cy,nType); } } But nothing is happening; Thanks. -- modified at 9:08 Friday 7th September, 2007
-
I'm new in MFC. How to dynammically change control size in CFormView? I do this: void CSalesmanView::OnSize(UINT nType, int cx, int cy) { CFormView::OnSize(nType, cx, cy); CTabCtrl * tab = (CTabCtrl *)this->GetDlgItem(IDC_TABMAIN); if (tab != NULL) { tab->SetWindowPos(this,0,0,cx,cy,nType); } } But nothing is happening; Thanks. -- modified at 9:08 Friday 7th September, 2007