disable timer when user wants to set an alternative date -

enables setting time and fixes bug 1398
bug report by Coviti

svn path=/trunk/; revision=22173
This commit is contained in:
Johannes Anderwald 2006-06-02 10:13:17 +00:00
parent 7b66dbbc92
commit ee29d1d56c

View file

@ -405,6 +405,7 @@ DateTimePageProc(HWND hwndDlg,
{
case DTN_DATETIMECHANGE:
/* Enable the 'Apply' button */
KillTimer(hwndDlg, ID_TIMER);
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
break;
}
@ -434,6 +435,7 @@ DateTimePageProc(HWND hwndDlg,
case PSN_APPLY:
SetLocalSystemTime(hwndDlg);
SetTimer(hwndDlg, ID_TIMER, 1000, NULL);
return TRUE;
}
}