serverstart/src/serverstartdlg.cpp
//--------------------------------------------------------------------------------
// If the user changed the name of the preference file we need to ask him to save
// changes, if any, in the old preference file.
//--------------------------------------------------------------------------------
If the user changed the name of the preference file we need to ask him to save
changes, if any, in the old preference file.
If the user changed the name of the preference file we need to ask him to save changes if any in the old preference file .
void CServerStartDlg::OnChangePrefs() {
   if(m_SaveButton.IsWindowEnabled()==TRUE) {
	   if(MessageBox("You have made changes in the service settings.\n Would you like to save them?","Service Settings",MB_YESNO|MB_ICONEXCLAMATION)==IDYES) {
		   SavePrefs(m_PrefsFile);
	   } else {
		   m_SaveButton.EnableWindow(FALSE);	
	   }
   }
   m_PathChanged = TRUE;
}
void CServerStartDlg :: OnChangePrefs ( ) { if ( m_SaveButton . IsWindowEnabled ( ) == TRUE ) { if ( MessageBox ( " \n " , " " , MB_YESNO | MB_ICONEXCLAMATION ) == IDYES ) { SavePrefs ( m_PrefsFile ) ; } else { m_SaveButton . EnableWindow ( FALSE ) ; } } m_PathChanged = TRUE ; }
If the user changed the name of the preference file we need to ask him to save
changes, if any, in the old preference file.
If the user changed the name of the preference file we need to ask him to save changes if any in the old preference file .