newntui/discovermdi/src/qaparams.cpp
//-----------------------------------------------------------------------
// This callback will run every time the user switched between parameters
// and report page. We will use it to show/hide our pages.
//-----------------------------------------------------------------------
This callback will run every time the user switched between parameters
and report page. We will use it to show/hide our pages.
This callback will run every time the user switched between parameters and report page . We will use it to show / hide our pages .
void CQAParams::OnModeChanged(NMHDR* pNMHDR, LRESULT* pResult) {
	switch(m_ModeSelector.GetCurSel()) {
	    case 0 : ShowReportPage(FALSE);
			     ShowSettingsPage(TRUE);
				 break;
	    case 1 :
			if(m_ModeSelector.GetItemCount()) {
				ShowSettingsPage(FALSE);
				UpdateReport();
			    ShowReportPage(TRUE);
			} else {
				m_ModeSelector.SetCurSel(0);
			}
			break;
	}
	*pResult = 0;
}
void CQAParams :: OnModeChanged ( NMHDR * pNMHDR , LRESULT * pResult ) { switch ( m_ModeSelector . GetCurSel ( ) ) { case 0 : ShowReportPage ( FALSE ) ; ShowSettingsPage ( TRUE ) ; break ; case 1 : if ( m_ModeSelector . GetItemCount ( ) ) { ShowSettingsPage ( FALSE ) ; UpdateReport ( ) ; ShowReportPage ( TRUE ) ; } else { m_ModeSelector . SetCurSel ( 0 ) ; } break ; } * pResult = 0 ; }
This callback will run every time the user switched between parameters
and report page.
This callback will run every time the user switched between parameters and report page .
// This is settings page. // This is report page.