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.

238 lines
9.3 KiB

  1. /*++
  2. Copyright (c) 1994-1998, Microsoft Corporation All rights reserved.
  3. Module Name:
  4. timedate.rc
  5. Abstract:
  6. This module contains the resource descriptions for the Date and Time
  7. applet.
  8. Revision History:
  9. --*/
  10. //
  11. // Include Files.
  12. //
  13. #include <windows.h>
  14. #include <commctrl.h>
  15. #include "rc.h"
  16. //
  17. // Icons.
  18. //
  19. IDI_TIMEDATE ICON PRELOAD DISCARDABLE "date.ico"
  20. //
  21. // Bitmaps.
  22. //
  23. IDB_TIMEZONE BITMAP DISCARDABLE "smalwrld.bmp"
  24. //
  25. // Dialogs.
  26. //
  27. DLG_DATETIME DIALOGEX DISCARDABLE 0, 0, 252, 146
  28. STYLE DS_MODALFRAME|(DS_SETFONT|DS_FIXEDSYS) | WS_POPUP | WS_CAPTION | WS_SYSMENU
  29. CAPTION "Date && Time"
  30. FONT 8, "MS Shell Dlg"
  31. BEGIN
  32. GROUPBOX "&Date", IDD_GROUPBOX1, 4, 2, 122, 125
  33. LTEXT "Month",DATETIME_STATIC,10, 17, 0, 0, NOT WS_VISIBLE
  34. COMBOBOX DATETIME_MONTHNAME, 11, 17, 50, 120,
  35. CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  36. LTEXT "Year",DATETIME_STATIC,67, 17, 0, 0, NOT WS_VISIBLE
  37. EDITTEXT DATETIME_YEAR, 68, 17, 42, 13, WS_TABSTOP | WS_BORDER
  38. CONTROL "", DATETIME_YARROW, UPDOWN_CLASS,
  39. UDS_AUTOBUDDY | UDS_NOTHOUSANDS | UDS_ARROWKEYS |
  40. UDS_SETBUDDYINT | UDS_WRAP, 110, 17, 8, 12
  41. LTEXT "Day",DATETIME_STATIC,10, 37, 0, 0, NOT WS_VISIBLE
  42. CONTROL "", DATETIME_CALENDAR, CALENDAR_CLASS,
  43. WS_BORDER | WS_TABSTOP, 11, 37, 108, 80
  44. GROUPBOX "&Time", IDD_GROUPBOX2, 132, 2, 113, 125
  45. CONTROL "", DATETIME_CLOCK, CLOCK_CLASS, 0x0, 144, 13, 90, 90
  46. EDITTEXT DATETIME_TBORDER, 159, 105, 57, 12,
  47. NOT WS_GROUP | WS_DISABLED
  48. LTEXT "Hour",DATETIME_STATIC,161, 107, 0, 0, NOT WS_VISIBLE
  49. EDITTEXT DATETIME_HOUR, 161, 107, 8, 8,
  50. ES_RIGHT | ES_MULTILINE | NOT WS_BORDER |
  51. WS_GROUP | WS_TABSTOP
  52. CTEXT "", DATETIME_TSEP1, 169, 107, 4, 8, SS_NOPREFIX
  53. LTEXT "Minute",DATETIME_STATIC,173, 107, 0, 0, NOT WS_VISIBLE
  54. EDITTEXT DATETIME_MINUTE, 173, 107, 8, 8,
  55. ES_RIGHT | ES_MULTILINE | NOT WS_BORDER |
  56. WS_GROUP | WS_TABSTOP
  57. CTEXT "", DATETIME_TSEP2, 181, 107, 4, 8, SS_NOPREFIX
  58. LTEXT "Second",DATETIME_STATIC,185, 107, 0, 0, NOT WS_VISIBLE
  59. EDITTEXT DATETIME_SECOND, 185, 107, 8, 8,
  60. ES_RIGHT | ES_MULTILINE | NOT WS_BORDER |
  61. WS_GROUP | WS_TABSTOP
  62. LTEXT "AM/PM",DATETIME_STATIC,193, 107, 0, 0, NOT WS_VISIBLE
  63. LISTBOX DATETIME_AMPM, 193, 107, 21, 17,
  64. NOT WS_BORDER | WS_GROUP | WS_TABSTOP
  65. CONTROL "", DATETIME_TARROW, UPDOWN_CLASS,
  66. UDS_AUTOBUDDY | UDS_NOTHOUSANDS | UDS_ARROWKEYS |
  67. UDS_SETBUDDYINT | UDS_WRAP, 217, 105, 7, 11
  68. LTEXT "Current time zone: %s", DATETIME_CURTZ, 4, 136, 243, 8
  69. END
  70. DLG_DATETIMEWIDE DIALOGEX DISCARDABLE 0, 0, 252, 146
  71. STYLE DS_MODALFRAME|(DS_SETFONT|DS_FIXEDSYS) | WS_POPUP | WS_CAPTION | WS_SYSMENU
  72. CAPTION "Date && Time"
  73. FONT 8, "MS Shell Dlg"
  74. BEGIN
  75. GROUPBOX "&Date", IDD_GROUPBOX1, 4, 2, 122, 125
  76. LTEXT "Month",DATETIME_STATIC,10, 17, 0, 0, NOT WS_VISIBLE
  77. COMBOBOX DATETIME_MONTHNAME, 11, 17, 50, 120,
  78. CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  79. LTEXT "Year",DATETIME_STATIC,67, 17, 0, 0, NOT WS_VISIBLE
  80. EDITTEXT DATETIME_YEAR, 68, 17, 42, 13, WS_TABSTOP | WS_BORDER
  81. CONTROL "", DATETIME_YARROW, UPDOWN_CLASS,
  82. UDS_AUTOBUDDY | UDS_NOTHOUSANDS | UDS_ARROWKEYS |
  83. UDS_SETBUDDYINT | UDS_WRAP, 110, 17, 8, 12
  84. LTEXT "Day",DATETIME_STATIC,10, 37, 0, 0, NOT WS_VISIBLE
  85. CONTROL "", DATETIME_CALENDAR, CALENDAR_CLASS,
  86. WS_BORDER | WS_TABSTOP, 11, 37, 108, 80
  87. GROUPBOX "&Time", IDD_GROUPBOX2, 132, 2, 113, 125
  88. CONTROL "", DATETIME_CLOCK, CLOCK_CLASS, 0x0, 144, 13, 90, 90
  89. EDITTEXT DATETIME_TBORDER, 150, 105, 71, 12,
  90. NOT WS_GROUP | WS_DISABLED
  91. LTEXT "Hour",DATETIME_STATIC,152, 107, 0, 0, NOT WS_VISIBLE
  92. EDITTEXT DATETIME_HOUR, 152, 107, 11, 8,
  93. ES_RIGHT | ES_MULTILINE | NOT WS_BORDER |
  94. WS_GROUP | WS_TABSTOP
  95. CTEXT "", DATETIME_TSEP1, 163, 107, 4, 8, SS_NOPREFIX
  96. LTEXT "Minute",DATETIME_STATIC,167, 107, 0, 0, NOT WS_VISIBLE
  97. EDITTEXT DATETIME_MINUTE, 167, 107, 11, 8,
  98. ES_RIGHT | ES_MULTILINE | NOT WS_BORDER |
  99. WS_GROUP | WS_TABSTOP
  100. CTEXT "", DATETIME_TSEP2, 178, 107, 4, 8, SS_NOPREFIX
  101. LTEXT "Second",DATETIME_STATIC,182, 107, 0, 0, NOT WS_VISIBLE
  102. EDITTEXT DATETIME_SECOND, 182, 107, 11, 8,
  103. ES_RIGHT | ES_MULTILINE | NOT WS_BORDER |
  104. WS_GROUP | WS_TABSTOP
  105. LTEXT "AM/PM",DATETIME_STATIC,193, 107, 0, 0, NOT WS_VISIBLE
  106. LISTBOX DATETIME_AMPM, 193, 107, 26, 17,
  107. NOT WS_BORDER | WS_GROUP | WS_TABSTOP
  108. CONTROL "", DATETIME_TARROW, UPDOWN_CLASS,
  109. UDS_AUTOBUDDY | UDS_NOTHOUSANDS | UDS_ARROWKEYS |
  110. UDS_SETBUDDYINT | UDS_WRAP, 222, 105, 7, 11
  111. LTEXT "Current time zone: %s", DATETIME_CURTZ, 4, 136, 243, 8
  112. END
  113. DLG_TIMEZONE DIALOGEX 0, 0, 252, 152
  114. STYLE DS_MODALFRAME|(DS_SETFONT|DS_FIXEDSYS) | WS_POPUP | WS_CAPTION | WS_SYSMENU
  115. CAPTION "Time Zone"
  116. FONT 8, "MS Shell Dlg"
  117. BEGIN
  118. LTEXT "Time zone",DATETIME_STATIC,4, 3, 0, 0, NOT WS_VISIBLE
  119. COMBOBOX IDD_TIMEZONES, 5, 4, 241, 136,
  120. CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  121. CONTROL "", IDD_TIMEMAP, MAPCTL_CLASSNAME, WS_BORDER,
  122. 5, 22, 241, 113
  123. AUTOCHECKBOX "A&utomatically adjust clock for daylight saving changes",
  124. IDD_AUTOMAGIC, 5, 139, 242, 10, WS_TABSTOP | WS_GROUP
  125. END
  126. DLG_ADVANCED DIALOGEX 0, 0, 252, 152
  127. STYLE DS_MODALFRAME|(DS_SETFONT|DS_FIXEDSYS) | WS_POPUP | WS_CAPTION | WS_SYSMENU
  128. CAPTION "Internet Time"
  129. FONT 8, "MS Shell Dlg"
  130. BEGIN
  131. AUTOCHECKBOX "Automatically &synchronize with an Internet time server", DATETIME_AUTOSETFROMINTERNET, 8, 10, 242, 10, WS_TABSTOP | WS_GROUP
  132. LTEXT "Server:",DATETIME_INTERNET_SERVER_LABLE,31, 26, 28, 8
  133. COMBOBOX DATETIME_INTERNET_SERVER_EDIT, 60, 24, 115, 76, WS_TABSTOP | CBS_DROPDOWN
  134. PUSHBUTTON "&Update Now",DATETIME_INTERNET_UPDATENOW,180,24,55,14
  135. LTEXT "",DATETIME_INTERNET_ERRORTEXT, 8, 52, 235, 48
  136. LTEXT "",DATETIME_INFOTEXTTOP,8, 108, 235, 8
  137. 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
  138. END
  139. //
  140. // String Tables.
  141. //
  142. STRINGTABLE DISCARDABLE
  143. BEGIN
  144. IDS_TIMEDATE "Date and Time"
  145. IDS_TIMEDATEINFO "Set the date, time, and time zone for your computer."
  146. IDS_WARNAUTOTIMECHANGE "Windows has updated your clock as a result of Daylight Saving Time. Please verify that your new clock settings are correct."
  147. IDS_WATC_CAPTION "New clock settings"
  148. IDS_CAPTION "Date and Time Properties"
  149. IDS_NOTIMEERROR "You do not have the proper privilege level to change the System Time."
  150. IDS_ISRAELTIMEZONE "Israel Standard Time"
  151. IDS_JERUSALEMTIMEZONE "Jerusalem Standard Time"
  152. END
  153. // Internet Time Success/Error strings
  154. STRINGTABLE DISCARDABLE
  155. BEGIN
  156. IDS_IT_WAITFORSYNC "Please wait while Windows synchronizes with %1!s!"
  157. IDS_IT_NEXTSYNC "Next synchronization: %1!s! at %2!s!"
  158. IDS_IT_SUCCESS "The time has been successfully synchronized with %3!s! on %1!s! at %2!s!."
  159. IDS_IT_SUCCESS2 "The time has been successfully synchronized on %1!s! at %2!s!."
  160. IDS_IT_FAIL1 "An error occurred while Windows was synchronizing with %1!s!. %2!s!"
  161. IDS_IT_FAIL2 "An error occurred while Windows was synchronizing with %1!s!."
  162. IDS_IT_FAIL3 "An error occurred while Windows was synchronizing. %1!s!"
  163. IDS_IT_FAILLAST "The time was most recently synchronized on %1!s! at %2!s!."
  164. 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"
  165. 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."
  166. IDS_ERR_GETINFO_FAIL "An error occurred getting the status of the last synchronization. %s"
  167. IDS_NEVER_TRIED_TOSYNC "Windows has never attempted to synchronize with an internet time server."
  168. END
  169. //
  170. // Version Info.
  171. //
  172. #include <winver.h>
  173. #include <ntverp.h>
  174. #define VER_FILETYPE VFT_DLL
  175. #define VER_FILESUBTYPE VFT2_UNKNOWN
  176. #define VER_FILEDESCRIPTION_STR "Time Date Control Panel Applet"
  177. #define VER_INTERNALNAME_STR "timedate.cpl"
  178. #define VER_LEGALCOPYRIGHT_YEARS "1991-1999"
  179. #define VER_ORIGINALFILENAME_STR "timedate.cpl"
  180. #include <common.ver>