CRect tabClientRect; m_tabMain.GetClientRect(tabClientRect); m_tabMain.AdjustRect(FALSE, tabClientRect); m_dlgFrm1.MoveWindow(tabClientRect);