Author: cwittich
Date: Sat May 6 01:55:27 2006
New Revision: 21809
URL:
http://svn.reactos.ru/svn/reactos?rev=21809&view=rev
Log:
-lock the year edit control
Modified:
trunk/reactos/dll/cpl/timedate/Cz.rc
trunk/reactos/dll/cpl/timedate/De.rc
trunk/reactos/dll/cpl/timedate/Dk.rc
trunk/reactos/dll/cpl/timedate/En.rc
trunk/reactos/dll/cpl/timedate/Es.rc
trunk/reactos/dll/cpl/timedate/Fr.rc
trunk/reactos/dll/cpl/timedate/Gr.rc
trunk/reactos/dll/cpl/timedate/Hu.rc
trunk/reactos/dll/cpl/timedate/Ja.rc
trunk/reactos/dll/cpl/timedate/Nl.rc
trunk/reactos/dll/cpl/timedate/Pl.rc
trunk/reactos/dll/cpl/timedate/Ru.rc
trunk/reactos/dll/cpl/timedate/Sv.rc
trunk/reactos/dll/cpl/timedate/timedate.c
Modified: trunk/reactos/dll/cpl/timedate/Cz.rc
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/Cz.rc?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/Cz.rc (original)
+++ trunk/reactos/dll/cpl/timedate/Cz.rc Sat May 6 01:55:27 2006
@@ -7,7 +7,7 @@
BEGIN
GROUPBOX "&Datum", -1, 4, 2, 122, 125
COMBOBOX IDC_MONTHCB, 11, 17, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
- EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP
+ EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP | ES_READONLY
CONTROL "", IDC_YEAR, UPDOWN_CLASS, UDS_SETBUDDYINT | UDS_NOTHOUSANDS |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
WS_BORDER | WS_GROUP, 120, 17, 50, 12
Modified: trunk/reactos/dll/cpl/timedate/De.rc
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/De.rc?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/De.rc (original)
+++ trunk/reactos/dll/cpl/timedate/De.rc Sat May 6 01:55:27 2006
@@ -8,7 +8,7 @@
BEGIN
GROUPBOX "&Datum", -1, 4, 2, 122, 125
COMBOBOX IDC_MONTHCB, 11, 17, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
- EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP
+ EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP | ES_READONLY
CONTROL "", IDC_YEAR, UPDOWN_CLASS, UDS_SETBUDDYINT | UDS_NOTHOUSANDS |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
WS_BORDER | WS_GROUP, 120, 17, 50, 12
Modified: trunk/reactos/dll/cpl/timedate/Dk.rc
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/Dk.rc?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/Dk.rc (original)
+++ trunk/reactos/dll/cpl/timedate/Dk.rc Sat May 6 01:55:27 2006
@@ -7,7 +7,7 @@
BEGIN
GROUPBOX "&Dato", -1, 4, 2, 126, 133
COMBOBOX IDC_MONTHCB, 11, 17, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
- EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP
+ EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP | ES_READONLY
CONTROL "", IDC_YEAR, UPDOWN_CLASS, UDS_SETBUDDYINT | UDS_NOTHOUSANDS |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
WS_BORDER | WS_GROUP, 120, 17, 50, 12
Modified: trunk/reactos/dll/cpl/timedate/En.rc
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/En.rc?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/En.rc (original)
+++ trunk/reactos/dll/cpl/timedate/En.rc Sat May 6 01:55:27 2006
@@ -7,7 +7,7 @@
BEGIN
GROUPBOX "&Date", -1, 4, 2, 122, 125
COMBOBOX IDC_MONTHCB, 11, 17, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
- EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP
+ EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP | ES_READONLY
CONTROL "", IDC_YEAR, UPDOWN_CLASS, UDS_SETBUDDYINT | UDS_NOTHOUSANDS |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
WS_BORDER | WS_GROUP, 120, 17, 50, 12
Modified: trunk/reactos/dll/cpl/timedate/Es.rc
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/Es.rc?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/Es.rc (original)
+++ trunk/reactos/dll/cpl/timedate/Es.rc Sat May 6 01:55:27 2006
@@ -7,7 +7,7 @@
BEGIN
GROUPBOX "&Dia", -1, 4, 2, 122, 125
COMBOBOX IDC_MONTHCB, 11, 17, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
- EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP
+ EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP | ES_READONLY
CONTROL "", IDC_YEAR, UPDOWN_CLASS, UDS_SETBUDDYINT | UDS_NOTHOUSANDS |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
WS_BORDER | WS_GROUP, 120, 17, 50, 12
Modified: trunk/reactos/dll/cpl/timedate/Fr.rc
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/Fr.rc?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/Fr.rc (original)
+++ trunk/reactos/dll/cpl/timedate/Fr.rc Sat May 6 01:55:27 2006
@@ -7,7 +7,7 @@
BEGIN
GROUPBOX "&Date", -1, 4, 2, 122, 125
COMBOBOX IDC_MONTHCB, 11, 17, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
- EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP
+ EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP | ES_READONLY
CONTROL "", IDC_YEAR, UPDOWN_CLASS, UDS_SETBUDDYINT | UDS_NOTHOUSANDS |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
WS_BORDER | WS_GROUP, 120, 17, 50, 12
Modified: trunk/reactos/dll/cpl/timedate/Gr.rc
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/Gr.rc?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/Gr.rc (original)
+++ trunk/reactos/dll/cpl/timedate/Gr.rc Sat May 6 01:55:27 2006
@@ -7,7 +7,7 @@
BEGIN
GROUPBOX "&Çìåñïìçíßá", -1, 4, 2, 122, 125
COMBOBOX IDC_MONTHCB, 11, 17, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
- EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP
+ EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP | ES_READONLY
CONTROL "", IDC_YEAR, UPDOWN_CLASS, UDS_SETBUDDYINT | UDS_NOTHOUSANDS |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
WS_BORDER | WS_GROUP, 120, 17, 50, 12
Modified: trunk/reactos/dll/cpl/timedate/Hu.rc
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/Hu.rc?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/Hu.rc (original)
+++ trunk/reactos/dll/cpl/timedate/Hu.rc Sat May 6 01:55:27 2006
@@ -8,7 +8,7 @@
BEGIN
GROUPBOX "&Dátum", -1, 4, 2, 122, 125
COMBOBOX IDC_MONTHCB, 11, 17, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
- EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP
+ EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP | ES_READONLY
CONTROL "", IDC_YEAR, UPDOWN_CLASS, UDS_SETBUDDYINT | UDS_NOTHOUSANDS |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
WS_BORDER | WS_GROUP, 120, 17, 50, 12
Modified: trunk/reactos/dll/cpl/timedate/Ja.rc
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/Ja.rc?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/Ja.rc (original)
+++ trunk/reactos/dll/cpl/timedate/Ja.rc Sat May 6 01:55:27 2006
@@ -7,7 +7,7 @@
BEGIN
GROUPBOX "út(&D)", -1, 4, 2, 122, 125
COMBOBOX IDC_MONTHCB, 11, 17, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
- EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP
+ EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP | ES_READONLY
CONTROL "", IDC_YEAR, UPDOWN_CLASS, UDS_SETBUDDYINT | UDS_NOTHOUSANDS |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
WS_BORDER | WS_GROUP, 120, 17, 50, 12
Modified: trunk/reactos/dll/cpl/timedate/Nl.rc
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/Nl.rc?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/Nl.rc (original)
+++ trunk/reactos/dll/cpl/timedate/Nl.rc Sat May 6 01:55:27 2006
@@ -7,7 +7,7 @@
BEGIN
GROUPBOX "Da&tum", -1, 4, 2, 122, 125
COMBOBOX IDC_MONTHCB, 11, 17, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
- EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP
+ EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP | ES_READONLY
CONTROL "", IDC_YEAR, UPDOWN_CLASS, UDS_SETBUDDYINT | UDS_NOTHOUSANDS |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
WS_BORDER | WS_GROUP, 120, 17, 50, 12
Modified: trunk/reactos/dll/cpl/timedate/Pl.rc
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/Pl.rc?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/Pl.rc (original)
+++ trunk/reactos/dll/cpl/timedate/Pl.rc Sat May 6 01:55:27 2006
@@ -9,7 +9,7 @@
BEGIN
GROUPBOX "&Data", -1, 4, 2, 122, 125
COMBOBOX IDC_MONTHCB, 11, 17, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
- EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP
+ EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP | ES_READONLY
CONTROL "", IDC_YEAR, UPDOWN_CLASS, UDS_SETBUDDYINT | UDS_NOTHOUSANDS |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
WS_BORDER | WS_GROUP, 120, 17, 50, 12
Modified: trunk/reactos/dll/cpl/timedate/Ru.rc
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/Ru.rc?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/Ru.rc (original)
+++ trunk/reactos/dll/cpl/timedate/Ru.rc Sat May 6 01:55:27 2006
@@ -7,7 +7,7 @@
BEGIN
GROUPBOX "&Äàòà", -1, 4, 2, 122, 125
COMBOBOX IDC_MONTHCB, 11, 17, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
- EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP
+ EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP | ES_READONLY
CONTROL "", IDC_YEAR, UPDOWN_CLASS, UDS_SETBUDDYINT | UDS_NOTHOUSANDS |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
WS_BORDER | WS_GROUP, 120, 17, 50, 12
Modified: trunk/reactos/dll/cpl/timedate/Sv.rc
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/Sv.rc?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/Sv.rc (original)
+++ trunk/reactos/dll/cpl/timedate/Sv.rc Sat May 6 01:55:27 2006
@@ -12,7 +12,7 @@
BEGIN
GROUPBOX "&Datum", -1, 4, 2, 122, 125
COMBOBOX IDC_MONTHCB, 11, 17, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
- EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP
+ EDITTEXT IDC_YEARTEXT,65, 17, 55, 12, ES_RIGHT | WS_GROUP | ES_READONLY
CONTROL "", IDC_YEAR, UPDOWN_CLASS, UDS_SETBUDDYINT | UDS_NOTHOUSANDS |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
WS_BORDER | WS_GROUP, 120, 17, 50, 12
Modified: trunk/reactos/dll/cpl/timedate/timedate.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/timedate/timedate.c…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/timedate.c (original)
+++ trunk/reactos/dll/cpl/timedate/timedate.c Sat May 6 01:55:27 2006
@@ -345,7 +345,12 @@
}
break;
}
-
+ case WM_CTLCOLORSTATIC:
+ {
+ if ((HWND) lParam == GetDlgItem(hwndDlg, IDC_YEARTEXT))
+ return (int) GetSysColorBrush(COLOR_WINDOW);
+ break;
+ }
case WM_NOTIFY:
{
LPNMHDR lpnm = (LPNMHDR)lParam;