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.
238 lines
9.5 KiB
238 lines
9.5 KiB
/*++
|
|
|
|
Copyright (c) 1994-1998, Microsoft Corporation All rights reserved.
|
|
|
|
Module Name:
|
|
|
|
timedate.rc
|
|
|
|
Abstract:
|
|
|
|
This module contains the resource descriptions for the Date and Time
|
|
applet.
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
|
|
|
|
//
|
|
// Include Files.
|
|
//
|
|
|
|
#include <windows.h>
|
|
#include <commctrl.h>
|
|
#include "rc.h"
|
|
|
|
|
|
|
|
|
|
//
|
|
// Icons.
|
|
//
|
|
|
|
IDI_TIMEDATE ICON PRELOAD DISCARDABLE "date.ico"
|
|
|
|
|
|
|
|
|
|
//
|
|
// Bitmaps.
|
|
//
|
|
|
|
IDB_TIMEZONE BITMAP DISCARDABLE "smalwrld.bmp"
|
|
|
|
|
|
|
|
|
|
//
|
|
// Dialogs.
|
|
//
|
|
|
|
DLG_DATETIME DIALOGEX DISCARDABLE 0, 0, 252, 146
|
|
STYLE DS_MODALFRAME|(DS_SETFONT|DS_FIXEDSYS) | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Date && Time"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
GROUPBOX "&Date", IDD_GROUPBOX1, 4, 2, 122, 125
|
|
LTEXT "Month",DATETIME_STATIC,10, 17, 0, 0, NOT WS_VISIBLE
|
|
COMBOBOX DATETIME_MONTHNAME, 11, 17, 50, 120,
|
|
CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
|
|
LTEXT "Year",DATETIME_STATIC,67, 17, 0, 0, NOT WS_VISIBLE
|
|
EDITTEXT DATETIME_YEAR, 68, 17, 42, 13, WS_TABSTOP | WS_BORDER
|
|
CONTROL "", DATETIME_YARROW, UPDOWN_CLASS,
|
|
UDS_AUTOBUDDY | UDS_NOTHOUSANDS | UDS_ARROWKEYS |
|
|
UDS_SETBUDDYINT | UDS_WRAP, 110, 17, 8, 12
|
|
|
|
LTEXT "Day",DATETIME_STATIC,10, 37, 0, 0, NOT WS_VISIBLE
|
|
CONTROL "", DATETIME_CALENDAR, CALENDAR_CLASS,
|
|
WS_BORDER | WS_TABSTOP, 11, 37, 108, 80
|
|
|
|
GROUPBOX "&Time", IDD_GROUPBOX2, 132, 2, 113, 125
|
|
CONTROL "", DATETIME_CLOCK, CLOCK_CLASS, 0x0, 144, 13, 90, 90
|
|
|
|
EDITTEXT DATETIME_TBORDER, 159, 105, 57, 12,
|
|
NOT WS_GROUP | WS_DISABLED
|
|
LTEXT "Hour",DATETIME_STATIC,161, 107, 0, 0, NOT WS_VISIBLE
|
|
EDITTEXT DATETIME_HOUR, 161, 107, 8, 8,
|
|
ES_RIGHT | ES_MULTILINE | NOT WS_BORDER |
|
|
WS_GROUP | WS_TABSTOP
|
|
CTEXT "", DATETIME_TSEP1, 169, 107, 4, 8, SS_NOPREFIX
|
|
LTEXT "Minute",DATETIME_STATIC,173, 107, 0, 0, NOT WS_VISIBLE
|
|
EDITTEXT DATETIME_MINUTE, 173, 107, 8, 8,
|
|
ES_RIGHT | ES_MULTILINE | NOT WS_BORDER |
|
|
WS_GROUP | WS_TABSTOP
|
|
CTEXT "", DATETIME_TSEP2, 181, 107, 4, 8, SS_NOPREFIX
|
|
LTEXT "Second",DATETIME_STATIC,185, 107, 0, 0, NOT WS_VISIBLE
|
|
EDITTEXT DATETIME_SECOND, 185, 107, 8, 8,
|
|
ES_RIGHT | ES_MULTILINE | NOT WS_BORDER |
|
|
WS_GROUP | WS_TABSTOP
|
|
LTEXT "AM/PM",DATETIME_STATIC,193, 107, 0, 0, NOT WS_VISIBLE
|
|
LISTBOX DATETIME_AMPM, 193, 107, 21, 17,
|
|
NOT WS_BORDER | WS_GROUP | WS_TABSTOP
|
|
CONTROL "", DATETIME_TARROW, UPDOWN_CLASS,
|
|
UDS_AUTOBUDDY | UDS_NOTHOUSANDS | UDS_ARROWKEYS |
|
|
UDS_SETBUDDYINT | UDS_WRAP, 217, 105, 7, 11
|
|
|
|
LTEXT "Current time zone: %s", DATETIME_CURTZ, 4, 136, 243, 8
|
|
END
|
|
|
|
DLG_DATETIMEWIDE DIALOGEX DISCARDABLE 0, 0, 252, 146
|
|
STYLE DS_MODALFRAME|(DS_SETFONT|DS_FIXEDSYS) | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Date && Time"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
GROUPBOX "&Date", IDD_GROUPBOX1, 4, 2, 122, 125
|
|
LTEXT "Month",DATETIME_STATIC,10, 17, 0, 0, NOT WS_VISIBLE
|
|
COMBOBOX DATETIME_MONTHNAME, 11, 17, 50, 120,
|
|
CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
|
|
LTEXT "Year",DATETIME_STATIC,67, 17, 0, 0, NOT WS_VISIBLE
|
|
EDITTEXT DATETIME_YEAR, 68, 17, 42, 13, WS_TABSTOP | WS_BORDER
|
|
CONTROL "", DATETIME_YARROW, UPDOWN_CLASS,
|
|
UDS_AUTOBUDDY | UDS_NOTHOUSANDS | UDS_ARROWKEYS |
|
|
UDS_SETBUDDYINT | UDS_WRAP, 110, 17, 8, 12
|
|
|
|
LTEXT "Day",DATETIME_STATIC,10, 37, 0, 0, NOT WS_VISIBLE
|
|
CONTROL "", DATETIME_CALENDAR, CALENDAR_CLASS,
|
|
WS_BORDER | WS_TABSTOP, 11, 37, 108, 80
|
|
|
|
GROUPBOX "&Time", IDD_GROUPBOX2, 132, 2, 113, 125
|
|
CONTROL "", DATETIME_CLOCK, CLOCK_CLASS, 0x0, 144, 13, 90, 90
|
|
|
|
EDITTEXT DATETIME_TBORDER, 150, 105, 71, 12,
|
|
NOT WS_GROUP | WS_DISABLED
|
|
LTEXT "Hour",DATETIME_STATIC,152, 107, 0, 0, NOT WS_VISIBLE
|
|
EDITTEXT DATETIME_HOUR, 152, 107, 11, 8,
|
|
ES_RIGHT | ES_MULTILINE | NOT WS_BORDER |
|
|
WS_GROUP | WS_TABSTOP
|
|
CTEXT "", DATETIME_TSEP1, 163, 107, 4, 8, SS_NOPREFIX
|
|
LTEXT "Minute",DATETIME_STATIC,167, 107, 0, 0, NOT WS_VISIBLE
|
|
EDITTEXT DATETIME_MINUTE, 167, 107, 11, 8,
|
|
ES_RIGHT | ES_MULTILINE | NOT WS_BORDER |
|
|
WS_GROUP | WS_TABSTOP
|
|
CTEXT "", DATETIME_TSEP2, 178, 107, 4, 8, SS_NOPREFIX
|
|
LTEXT "Second",DATETIME_STATIC,182, 107, 0, 0, NOT WS_VISIBLE
|
|
EDITTEXT DATETIME_SECOND, 182, 107, 11, 8,
|
|
ES_RIGHT | ES_MULTILINE | NOT WS_BORDER |
|
|
WS_GROUP | WS_TABSTOP
|
|
LTEXT "AM/PM",DATETIME_STATIC,193, 107, 0, 0, NOT WS_VISIBLE
|
|
LISTBOX DATETIME_AMPM, 193, 107, 26, 17,
|
|
NOT WS_BORDER | WS_GROUP | WS_TABSTOP
|
|
CONTROL "", DATETIME_TARROW, UPDOWN_CLASS,
|
|
UDS_AUTOBUDDY | UDS_NOTHOUSANDS | UDS_ARROWKEYS |
|
|
UDS_SETBUDDYINT | UDS_WRAP, 222, 105, 7, 11
|
|
|
|
LTEXT "Current time zone: %s", DATETIME_CURTZ, 4, 136, 243, 8
|
|
END
|
|
|
|
DLG_TIMEZONE DIALOGEX 0, 0, 252, 152
|
|
STYLE DS_MODALFRAME|(DS_SETFONT|DS_FIXEDSYS) | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Time Zone"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
LTEXT "Time zone",DATETIME_STATIC,4, 3, 0, 0, NOT WS_VISIBLE
|
|
COMBOBOX IDD_TIMEZONES, 5, 4, 241, 136,
|
|
CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
|
|
CONTROL "", IDD_TIMEMAP, MAPCTL_CLASSNAME, WS_BORDER,
|
|
5, 22, 241, 113
|
|
AUTOCHECKBOX "A&utomatically adjust clock for daylight saving changes",
|
|
IDD_AUTOMAGIC, 5, 139, 242, 10, WS_TABSTOP | WS_GROUP
|
|
END
|
|
|
|
|
|
DLG_ADVANCED DIALOGEX 0, 0, 252, 152
|
|
STYLE DS_MODALFRAME|(DS_SETFONT|DS_FIXEDSYS) | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Internet Time"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
AUTOCHECKBOX "Automatically &synchronize with an Internet time server", DATETIME_AUTOSETFROMINTERNET, 8, 10, 242, 10, WS_TABSTOP | WS_GROUP
|
|
LTEXT "Server:",DATETIME_INTERNET_SERVER_LABLE,31, 26, 28, 8
|
|
COMBOBOX DATETIME_INTERNET_SERVER_EDIT, 60, 24, 115, 76, WS_TABSTOP | CBS_DROPDOWN | CBS_AUTOHSCROLL
|
|
PUSHBUTTON "&Update Now",DATETIME_INTERNET_UPDATENOW,180,24,55,14
|
|
|
|
LTEXT "",DATETIME_INTERNET_ERRORTEXT, 8, 52, 235, 48
|
|
|
|
LTEXT "",DATETIME_INFOTEXTTOP,8, 108, 235, 8
|
|
|
|
CONTROL "Synchronization can occur only when your computer is connected to the Internet. Learn more about <A ID=""HelpMe"">time synchronization</A> in Help and Support Center.", DATETIME_INFOTEXTPROXY, WC_LINK, WS_TABSTOP, 8, 120, 235, 24
|
|
END
|
|
|
|
|
|
|
|
|
|
//
|
|
// String Tables.
|
|
//
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
BEGIN
|
|
IDS_TIMEDATE "Date and Time"
|
|
IDS_TIMEDATEINFO "Set the date, time, and time zone for your computer."
|
|
|
|
IDS_WARNAUTOTIMECHANGE "Windows has updated your clock as a result of Daylight Saving Time. Please verify that your new clock settings are correct."
|
|
IDS_WATC_CAPTION "New clock settings"
|
|
|
|
IDS_CAPTION "Date and Time Properties"
|
|
IDS_NOTIMEERROR "You do not have the proper privilege level to change the System Time."
|
|
|
|
IDS_ISRAELTIMEZONE "Israel Standard Time"
|
|
IDS_JERUSALEMTIMEZONE "Jerusalem Standard Time"
|
|
END
|
|
|
|
|
|
// Internet Time Success/Error strings
|
|
STRINGTABLE DISCARDABLE
|
|
BEGIN
|
|
IDS_IT_WAITFORSYNC "Please wait while Windows synchronizes with %1!s!"
|
|
IDS_IT_NEXTSYNC "Next synchronization: %1!s! at %2!s!"
|
|
IDS_IT_SUCCESS "The time has been successfully synchronized with %3!s! on %1!s! at %2!s!."
|
|
IDS_IT_SUCCESS2 "The time has been successfully synchronized on %1!s! at %2!s!."
|
|
IDS_IT_FAIL1 "An error occurred while Windows was synchronizing with %1!s!. %2!s!"
|
|
IDS_IT_FAIL2 "An error occurred while Windows was synchronizing with %1!s!."
|
|
IDS_IT_FAIL3 "An error occurred while Windows was synchronizing. %1!s!"
|
|
IDS_IT_FAILLAST "The time was most recently synchronized on %1!s! at %2!s!."
|
|
IDS_TROUBLESHOOT_INTERNETIME "hcp://services/subsite?node=Unmapped/Control_Panel&topic=MS-ITS%3A%25HELP_LOCATION%25%5Cdatetime.chm%3A%3A/windows_date_IT_overview.htm&select=Date_Time_Language_and_Regional_Settings"
|
|
IDS_ERR_DATETOOWRONG "For security reasons, Windows can not synchronize with the server because your date does not match. Please fix the date and try again."
|
|
IDS_ERR_GETINFO_FAIL "An error occurred getting the status of the last synchronization. %s"
|
|
IDS_NEVER_TRIED_TOSYNC "Windows has never attempted to synchronize with an internet time server."
|
|
END
|
|
|
|
|
|
|
|
|
|
//
|
|
// Version Info.
|
|
//
|
|
|
|
#include <winver.h>
|
|
#include <ntverp.h>
|
|
|
|
#define VER_FILETYPE VFT_DLL
|
|
#define VER_FILESUBTYPE VFT2_UNKNOWN
|
|
#define VER_FILEDESCRIPTION_STR "Time Date Control Panel Applet"
|
|
#define VER_INTERNALNAME_STR "timedate.cpl"
|
|
#define VER_LEGALCOPYRIGHT_YEARS "1991-1999"
|
|
#define VER_ORIGINALFILENAME_STR "timedate.cpl"
|
|
|
|
#include <common.ver>
|