newntui/activex/tabselector/src/tabselectorctl.cpp
//---------------------------------------------------------------------------------------
// Changing the window size will result in size changing of all it's childs - tab control
// will occupy the topmost row and all ActiveX controls will occupy the bottom.
//---------------------------------------------------------------------------------------
Changing the window size will result in size changing of all it's childs - tab control
will occupy the topmost row and all ActiveX controls will occupy the bottom.
Changing the window size will result in size changing of all it ' s childs - tab control will occupy the topmost row and all ActiveX controls will occupy the bottom .
void CTabSelectorCtrl::OnSize(UINT nType, int cx, int cy) {
	COleControl::OnSize(nType, cx, cy);
	if(::IsWindow(m_Tab)) m_Tab.MoveWindow(0,0,cx,25);
	if(::IsWindow(m_Categories)) m_Categories.MoveWindow(0,25,cx,cy-25);
	if(::IsWindow(m_Queries))    m_Queries.MoveWindow(0,25,cx,cy-25);
	if(::IsWindow(m_Groups))     m_Groups.MoveWindow(0,25,cx,cy-25);
}
void CTabSelectorCtrl :: OnSize ( UINT nType , int cx , int cy ) { COleControl :: OnSize ( nType , cx , cy ) ; if ( :: IsWindow ( m_Tab ) ) m_Tab . MoveWindow ( 0 , 0 , cx , 25 ) ; if ( :: IsWindow ( m_Categories ) ) m_Categories . MoveWindow ( 0 , 25 , cx , cy - 25 ) ; if ( :: IsWindow ( m_Queries ) ) m_Queries . MoveWindow ( 0 , 25 , cx , cy - 25 ) ; if ( :: IsWindow ( m_Groups ) ) m_Groups . MoveWindow ( 0 , 25 , cx , cy - 25 ) ; }
Changing the window size will result in size changing of all it's childs - tab control
will occupy the topmost row and all ActiveX controls will occupy the bottom.
Changing the window size will result in size changing of all it ' s childs - tab control will occupy the topmost row and all ActiveX controls will occupy the bottom .