[BROWSEUI]
[reactos.git] / dll / cpl / timedate / dateandtime.c
index 750e895..c51e175 100644 (file)
@@ -9,7 +9,7 @@
  *
  */
 
-#include <timedate.h>
+#include "timedate.h"
 
 static WNDPROC pOldWndProc = NULL;
 
@@ -123,6 +123,7 @@ SetTimeZoneName(HWND hwnd)
     switch (TimeZoneId)
     {
         case TIME_ZONE_ID_STANDARD:
+        case TIME_ZONE_ID_UNKNOWN:
             wcscpy(TimeZoneName, TimeZoneInfo.StandardName);
             break;
 
@@ -130,10 +131,6 @@ SetTimeZoneName(HWND hwnd)
             wcscpy(TimeZoneName, TimeZoneInfo.DaylightName);
             break;
 
-        case TIME_ZONE_ID_UNKNOWN:
-            LoadStringW(hApplet, IDS_TIMEZONEUNKNOWN, TimeZoneName, 128);
-            break;
-
         case TIME_ZONE_ID_INVALID:
         default:
             LoadStringW(hApplet, IDS_TIMEZONEINVALID, TimeZoneName, 128);
@@ -239,7 +236,7 @@ AutoUpdateMonthCal(HWND hwndDlg,
 {
     UNREFERENCED_PARAMETER(lpAutoUpdate);
 
-    /* update the controls */
+    /* Update the controls */
     FillMonthsComboBox(GetDlgItem(hwndDlg,
                                   IDC_MONTHCB));
 }
@@ -254,7 +251,7 @@ DTPProc(HWND hwnd,
     switch (uMsg)
     {
         case WM_KEYDOWN:
-            /* stop the timer when the user is about to change the time */
+            /* Stop the timer when the user is about to change the time */
             if ((wParam != VK_LEFT) & (wParam != VK_RIGHT))
                 KillTimer(GetParent(hwnd), ID_TIMER);
             break;
@@ -281,7 +278,7 @@ DateTimePageProc(HWND hwndDlg,
 
             SetTimer(hwndDlg, ID_TIMER, 1000, NULL);
 
-            /* set range and current year */
+            /* Set range and current year */
             SendMessageW(GetDlgItem(hwndDlg, IDC_YEAR), UDM_SETRANGE, 0, MAKELONG ((short) 9999, (short) 1900));
             SendMessageW(GetDlgItem(hwndDlg, IDC_YEAR), UDM_SETPOS, 0, MAKELONG( (short) st.wYear, 0));
 
@@ -393,7 +390,7 @@ DateTimePageProc(HWND hwndDlg,
         break;
 
         case WM_TIMECHANGE:
-            /* FIXME - we don't get this message as we're not a top-level window... */
+            /* FIXME: We don't get this message as we're not a top-level window... */
             SendMessageW(GetDlgItem(hwndDlg,
                                     IDC_MONTHCALENDAR),
                          MCCM_RESET,