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.
 
 
 
 
 
 

45 lines
892 B

//////////////////////////////////////////////////////////////////////////////
//
// TIMESCHM.CPP / Tuneup
//
// Microsoft Confidential
// Copyright (c) Microsoft Corporation 1998
// All rights reserved
//
// Functions for the startup startmenu group wizard page.
//
// 7/98 - Jason Cohen (JCOHEN)
//
//////////////////////////////////////////////////////////////////////////////
// Include file(s).
//
#include "main.h"
#include "schedwiz.h"
VOID UpdateTimeScheme(HWND hDlg)
{
INT nButtons[] = { IDC_NIGHT, IDC_DAY, IDC_EVENING, 0 },
nIndex = -1;
// Get the selected radio button.
//
while ( nButtons[++nIndex] && !IsDlgButtonChecked(hDlg, nButtons[nIndex]) );
// Check to see if the time scheme changed.
//
if ( nButtons[nIndex] )
{
// Update the time scheme.
//
g_nTimeScheme = nButtons[nIndex];
// Update the jobs.
//
SetTimeScheme(g_nTimeScheme);
}
}