newntui/discovermdi/src/qatree.cpp
//---------------------------------------------------------------------------------------
// This private function will check if controls is already available
// and will position them in appropriate places.
//---------------------------------------------------------------------------------------
This private function will check if controls is already available
and will position them in appropriate places.
This private function will check if controls is already available and will position them in appropriate places .
void CQATree::LayoutControls(int cx, int cy) {
int titleHeight=0;
	if(::IsWindow(m_Title)) {
		CRect titleRect;
		m_Title.GetWindowRect(titleRect);
		titleHeight=titleRect.Height();
		m_Title.MoveWindow(0,0,cx,titleHeight);
	}
	if(::IsWindow(m_Tree)) {
		m_Tree.MoveWindow(0,titleHeight,cx,cy-titleHeight);
	}
}
void CQATree :: LayoutControls ( int cx , int cy ) { int titleHeight = 0 ; if ( :: IsWindow ( m_Title ) ) { CRect titleRect ; m_Title . GetWindowRect ( titleRect ) ; titleHeight = titleRect . Height ( ) ; m_Title . MoveWindow ( 0 , 0 , cx , titleHeight ) ; } if ( :: IsWindow ( m_Tree ) ) { m_Tree . MoveWindow ( 0 , titleHeight , cx , cy - titleHeight ) ; } }
This private function will check if controls is already available
and will position them in appropriate places.
This private function will check if controls is already available and will position them in appropriate places .