newntui/discovermdi/src/qaparams.cpp
//-----------------------------------------------------------------------
// This private function will show or hide all controls on the report
// page depending on the show flag.
//-----------------------------------------------------------------------
This private function will show or hide all controls on the report
page depending on the show flag.
This private function will show or hide all controls on the report page depending on the show flag .
void CQAParams::ShowReportPage(BOOL show) {
	if(::IsWindow(m_Reporter)) {
		CRect winRect;
        GetClientRect(&winRect);
		if(show==FALSE) {
			m_Reporter.Stop();
			m_Reporter.SetTop(25);
	        m_Reporter.SetLeft(SPACE);
	        m_Reporter.SetWidth(0);
	        m_Reporter.SetHeight(0);
			m_ShowReport=FALSE;
		} else {
	        m_Reporter.SetTop(25);
	        m_Reporter.SetLeft(SPACE);
	        m_Reporter.SetWidth(winRect.Width()-2*SPACE);
	        m_Reporter.SetHeight(winRect.Height()-25-SPACE);
			m_ShowReport=TRUE;
		}
	}
}
void CQAParams :: ShowReportPage ( BOOL show ) { if ( :: IsWindow ( m_Reporter ) ) { CRect winRect ; GetClientRect ( & winRect ) ; if ( show == FALSE ) { m_Reporter . Stop ( ) ; m_Reporter . SetTop ( 25 ) ; m_Reporter . SetLeft ( SPACE ) ; m_Reporter . SetWidth ( 0 ) ; m_Reporter . SetHeight ( 0 ) ; m_ShowReport = FALSE ; } else { m_Reporter . SetTop ( 25 ) ; m_Reporter . SetLeft ( SPACE ) ; m_Reporter . SetWidth ( winRect . Width ( ) - 2 * SPACE ) ; m_Reporter . SetHeight ( winRect . Height ( ) - 25 - SPACE ) ; m_ShowReport = TRUE ; } } }
This private function will show or hide all controls on the report
page depending on the show flag.
This private function will show or hide all controls on the report page depending on the show flag .