Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
892 B

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // TIMESCHM.CPP / Tuneup
  4. //
  5. // Microsoft Confidential
  6. // Copyright (c) Microsoft Corporation 1998
  7. // All rights reserved
  8. //
  9. // Functions for the startup startmenu group wizard page.
  10. //
  11. // 7/98 - Jason Cohen (JCOHEN)
  12. //
  13. //////////////////////////////////////////////////////////////////////////////
  14. // Include file(s).
  15. //
  16. #include "main.h"
  17. #include "schedwiz.h"
  18. VOID UpdateTimeScheme(HWND hDlg)
  19. {
  20. INT nButtons[] = { IDC_NIGHT, IDC_DAY, IDC_EVENING, 0 },
  21. nIndex = -1;
  22. // Get the selected radio button.
  23. //
  24. while ( nButtons[++nIndex] && !IsDlgButtonChecked(hDlg, nButtons[nIndex]) );
  25. // Check to see if the time scheme changed.
  26. //
  27. if ( nButtons[nIndex] )
  28. {
  29. // Update the time scheme.
  30. //
  31. g_nTimeScheme = nButtons[nIndex];
  32. // Update the jobs.
  33. //
  34. SetTimeScheme(g_nTimeScheme);
  35. }
  36. }