serverstart/src/serverstartdlg.cpp
//------------------------------------------------------------------------------------------
// Callback runs when user switches the page between local and remote services.
//------------------------------------------------------------------------------------------
Callback runs when user switches the page between local and remote services.
Callback runs when user switches the page between local and remote services .
void CServerStartDlg::OnPageChanged(NMHDR* pNMHDR, LRESULT* pResult)  {
	switch(m_ModeSelector.GetCurSel()) {
	    case 0 : m_Timeout.EnableWindow(FALSE);
			     m_TimeoutSelector.EnableWindow(FALSE);
				 m_NewGroup.EnableWindow(FALSE);
				 m_NameEditor.EnableWindow(FALSE);
				 m_Name.EnableWindow(FALSE);
	             FillServiceList(0);
				 break;
	    case 1 : m_Timeout.EnableWindow(TRUE);
			     m_TimeoutSelector.EnableWindow(TRUE);
				 m_NewGroup.EnableWindow(TRUE);
				 m_NameEditor.EnableWindow(TRUE);
				 m_Name.EnableWindow(TRUE);
	             FillServiceList(1);
				 break;
	}
	*pResult = 0;
}
void CServerStartDlg :: OnPageChanged ( NMHDR * pNMHDR , LRESULT * pResult ) { switch ( m_ModeSelector . GetCurSel ( ) ) { case 0 : m_Timeout . EnableWindow ( FALSE ) ; m_TimeoutSelector . EnableWindow ( FALSE ) ; m_NewGroup . EnableWindow ( FALSE ) ; m_NameEditor . EnableWindow ( FALSE ) ; m_Name . EnableWindow ( FALSE ) ; FillServiceList ( 0 ) ; break ; case 1 : m_Timeout . EnableWindow ( TRUE ) ; m_TimeoutSelector . EnableWindow ( TRUE ) ; m_NewGroup . EnableWindow ( TRUE ) ; m_NameEditor . EnableWindow ( TRUE ) ; m_Name . EnableWindow ( TRUE ) ; FillServiceList ( 1 ) ; break ; } * pResult = 0 ; }
Callback runs when user switches the page between local and remote services.
Callback runs when user switches the page between local and remote services .