Author: ekohl
Date: Sat Jan 25 15:56:09 2014
New Revision: 61808
URL:
http://svn.reactos.org/svn/reactos?rev=61808&view=rev
Log:
[MSGINA]
- Enable the "Change Password" button of the security dialog.
- Initialize the "Change Password" dialog.
Modified:
trunk/reactos/dll/win32/msgina/gui.c
trunk/reactos/dll/win32/msgina/lang/bg-BG.rc
trunk/reactos/dll/win32/msgina/lang/cs-CZ.rc
trunk/reactos/dll/win32/msgina/lang/de-DE.rc
trunk/reactos/dll/win32/msgina/lang/es-ES.rc
trunk/reactos/dll/win32/msgina/lang/fr-FR.rc
trunk/reactos/dll/win32/msgina/lang/he-IL.rc
trunk/reactos/dll/win32/msgina/lang/id-ID.rc
trunk/reactos/dll/win32/msgina/lang/it-IT.rc
trunk/reactos/dll/win32/msgina/lang/ja-JP.rc
trunk/reactos/dll/win32/msgina/lang/no-NO.rc
trunk/reactos/dll/win32/msgina/lang/pl-PL.rc
trunk/reactos/dll/win32/msgina/lang/ro-RO.rc
trunk/reactos/dll/win32/msgina/lang/ru-RU.rc
trunk/reactos/dll/win32/msgina/lang/sk-SK.rc
trunk/reactos/dll/win32/msgina/lang/tr-TR.rc
trunk/reactos/dll/win32/msgina/lang/uk-UA.rc
Modified: trunk/reactos/dll/win32/msgina/gui.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/gui.c?rev…
==============================================================================
--- trunk/reactos/dll/win32/msgina/gui.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/gui.c [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -220,6 +220,14 @@
}
+static
+BOOL
+DoChangePassword(HWND hwndDlg)
+{
+ return FALSE;
+}
+
+
static INT_PTR CALLBACK
ChangePasswordDialogProc(
IN HWND hwndDlg,
@@ -227,17 +235,36 @@
IN WPARAM wParam,
IN LPARAM lParam)
{
+ PGINA_CONTEXT pgContext;
+
+ pgContext = (PGINA_CONTEXT)GetWindowLongPtr(hwndDlg, GWL_USERDATA);
+
switch (uMsg)
{
case WM_INITDIALOG:
- FIXME("ChangePasswordDialogProc: WM_INITDLG\n");
+ pgContext = (PGINA_CONTEXT)lParam;
+ SetWindowLongPtr(hwndDlg, GWL_USERDATA, (DWORD_PTR)pgContext);
+
+ SetDlgItemTextW(hwndDlg, IDC_CHANGEPWD_USERNAME, pgContext->UserName);
+ SendDlgItemMessageW(hwndDlg, IDC_CHANGEPWD_DOMAIN, CB_ADDSTRING, 0,
(LPARAM)pgContext->Domain);
+ SendDlgItemMessageW(hwndDlg, IDC_CHANGEPWD_DOMAIN, CB_SETCURSEL, 0, 0);
+ SetFocus(GetDlgItem(hwndDlg, IDC_CHANGEPWD_OLDPWD));
return TRUE;
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDOK:
- EndDialog(hwndDlg, TRUE);
+ if (DoChangePassword(hwndDlg))
+ {
+ EndDialog(hwndDlg, TRUE);
+ }
+ else
+ {
+ SetDlgItemTextW(hwndDlg, IDC_CHANGEPWD_NEWPWD1, NULL);
+ SetDlgItemTextW(hwndDlg, IDC_CHANGEPWD_NEWPWD2, NULL);
+ SetFocus(GetDlgItem(hwndDlg, IDC_CHANGEPWD_OLDPWD));
+ }
return TRUE;
case IDCANCEL:
Modified: trunk/reactos/dll/win32/msgina/lang/bg-BG.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/bg-B…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/bg-BG.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/bg-BG.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -46,7 +46,7 @@
PUSHBUTTON "ÐаклÑÑване на компÑÑÑÑа", IDC_LOCK, 25,
154, 99, 14
PUSHBUTTON "ÐзÑ
од", IDC_LOGOFF, 90, 135, 75, 14
PUSHBUTTON "ÐзклÑÑване", IDC_SHUTDOWN, 170, 135, 75, 14
- PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
+ PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "ÐадаÑен ÑпÑавиÑел", IDC_TASKMGR, 10, 135, 75,
14
PUSHBUTTON "ÐÑказ", IDCANCEL, 130, 154, 99, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/cs-CZ.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/cs-C…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/cs-CZ.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/cs-CZ.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -51,7 +51,7 @@
PUSHBUTTON "Uzamknout poÄÃtaÄ", IDC_LOCK, 10, 135, 70, 14
PUSHBUTTON "Odhlásit", IDC_LOGOFF, 90, 135, 70, 14
PUSHBUTTON "Vypnout", IDC_SHUTDOWN, 170, 135, 70, 14
- PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
+ PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "Správce úloh", IDC_TASKMGR, 90, 154, 70, 14
PUSHBUTTON "Storno", IDCANCEL, 170, 154, 70, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/de-D…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/de-DE.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/de-DE.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -46,7 +46,7 @@
PUSHBUTTON "Computer sperren", IDC_LOCK, 10, 135, 76, 14
PUSHBUTTON "Abmelden...", IDC_LOGOFF, 100, 135, 75, 14
PUSHBUTTON "Herunterfahren", IDC_SHUTDOWN, 189, 135, 76, 14
- PUSHBUTTON "Password ändern", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
+ PUSHBUTTON "Password ändern", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "Task-Manager", IDC_TASKMGR, 100, 154, 75, 14
PUSHBUTTON "Abbrechen", IDCANCEL, 189, 154, 76, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/es-ES.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/es-E…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/es-ES.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/es-ES.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -48,7 +48,7 @@
PUSHBUTTON "Bloquear computadora", IDC_LOCK, 4, 135, 83, 14
PUSHBUTTON "Salir", IDC_LOGOFF, 92, 135, 88, 14
PUSHBUTTON "Cerrar", IDC_SHUTDOWN, 186, 135, 70, 14
- PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
+ PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "Administrador de tareas", IDC_TASKMGR, 92, 154, 88, 14
PUSHBUTTON "Cancelar", IDCANCEL, 186, 154, 70, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/fr-F…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/fr-FR.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/fr-FR.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -46,7 +46,7 @@
PUSHBUTTON "Verrouiller l'ordinateur", IDC_LOCK, 4, 135, 82, 14
PUSHBUTTON "Déconnecter", IDC_LOGOFF, 93, 135, 85, 14
PUSHBUTTON "Ãteindre", IDC_SHUTDOWN, 184, 135, 70, 14
- PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
+ PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "Gestionnaire de tâches", IDC_TASKMGR, 93, 154, 85, 14
PUSHBUTTON "Annuler", IDCANCEL, 184, 154, 70, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/he-IL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/he-I…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/he-IL.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/he-IL.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -46,7 +46,7 @@
PUSHBUTTON "×× ×¢×× ×ת ×××ש×", IDC_LOCK, 10, 76, 70, 14
PUSHBUTTON "×××ª× ×ª×§", IDC_LOGOFF, 90, 76, 70, 14
PUSHBUTTON "××××ת", IDC_SHUTDOWN, 170, 76, 70, 14
- PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
+ PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "×× ×× ××ש×××ת", IDC_TASKMGR, 90, 95, 70, 14
PUSHBUTTON "×××××", IDCANCEL, 170, 95, 70, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/id-ID.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/id-I…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/id-ID.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/id-ID.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -46,7 +46,7 @@
PUSHBUTTON "Kunci komputer", IDC_LOCK, 10, 135, 70, 14
PUSHBUTTON "Keluar", IDC_LOGOFF, 90, 135, 70, 14
PUSHBUTTON "Matikan", IDC_SHUTDOWN, 170, 135, 70, 14
- PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
+ PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "Manager Tugas", IDC_TASKMGR, 90, 154, 70, 14
PUSHBUTTON "Batal", IDCANCEL, 170, 154, 70, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/it-IT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/it-I…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/it-IT.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/it-IT.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -54,7 +54,7 @@
PUSHBUTTON "Bloccare il computer", IDC_LOCK, 10, 135, 70, 14
PUSHBUTTON "Fine sessione", IDC_LOGOFF, 90, 135, 70, 14
PUSHBUTTON "Spegnimento", IDC_SHUTDOWN, 170, 135, 70, 14
- PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
+ PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "Task manager", IDC_TASKMGR, 90, 154, 70, 14
PUSHBUTTON "Annulla", IDCANCEL, 170, 154, 70, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/ja-JP.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/ja-J…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/ja-JP.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/ja-JP.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -46,7 +46,7 @@
PUSHBUTTON "ã³ã³ãã¥ã¼ã¿ã®ããã¯", IDC_LOCK, 10, 135, 70, 14
PUSHBUTTON "ãã°ãªã", IDC_LOGOFF, 90, 135, 70, 14
PUSHBUTTON "ã·ã£ãããã¦ã³", IDC_SHUTDOWN, 170, 135, 70, 14
- PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
+ PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "ã¿ã¹ã¯ ããã¼ã¸ã£", IDC_TASKMGR, 90, 154, 70, 14
PUSHBUTTON "ãã£ã³ã»ã«", IDCANCEL, 170, 154, 70, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/no-NO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/no-N…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/no-NO.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/no-NO.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -46,7 +46,7 @@
PUSHBUTTON "LÃ¥s datamaskinen...", IDC_LOCK, 7, 135, 74, 14
PUSHBUTTON "Logg av...", IDC_LOGOFF, 86, 135, 78, 14
PUSHBUTTON "Avslutt...", IDC_SHUTDOWN, 170, 135, 70, 14
- PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
+ PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "Oppgavebehandling...", IDC_TASKMGR, 86, 154, 78, 14
PUSHBUTTON "Avbryt", IDCANCEL, 170, 154, 70, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/pl-PL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/pl-P…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/pl-PL.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/pl-PL.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -55,7 +55,7 @@
PUSHBUTTON "Blokada komputera", IDC_LOCK, 10, 135, 70, 14
PUSHBUTTON "Wyloguj", IDC_LOGOFF, 90, 135, 70, 14
PUSHBUTTON "WyÅÄ
cz", IDC_SHUTDOWN, 170, 135, 70, 14
- PUSHBUTTON "ZmieÅ hasÅo", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
+ PUSHBUTTON "ZmieÅ hasÅo", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "Menedżer zadaÅ", IDC_TASKMGR, 90, 154, 70, 14
PUSHBUTTON "Anuluj", IDCANCEL, 170, 154, 70, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/ro-RO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/ro-R…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/ro-RO.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/ro-RO.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -48,7 +48,7 @@
PUSHBUTTON "&BlocheazÄ calculatorul", IDC_LOCK, 10, 135, 70, 14
PUSHBUTTON "&DeautentificÄ-mÄ", IDC_LOGOFF, 90, 135, 70, 14
PUSHBUTTON "Ãnchid&e calculatorul", IDC_SHUTDOWN, 170, 135, 70, 14
- PUSHBUTTON "Schim&bÄ parola", IDC_CHANGEPWD, 10, 154, 76, 14,
WS_DISABLED
+ PUSHBUTTON "Schim&bÄ parola", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "&Gestionar de activitÄÈiâ¦", IDC_TASKMGR, 90, 154, 70,
14
PUSHBUTTON "A&nuleazÄ", IDCANCEL, 170, 154, 70, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/ru-RU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/ru-R…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/ru-RU.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/ru-RU.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -48,7 +48,7 @@
PUSHBUTTON "ÐаблокиÑоваÑÑ", IDC_LOCK, 7, 135, 86, 14
PUSHBUTTON "ÐавеÑÑение ÑеанÑа", IDC_LOGOFF, 102, 135, 86,
14
PUSHBUTTON "ÐÑклÑÑение", IDC_SHUTDOWN, 198, 135, 70, 14
- PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
+ PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "ÐиÑпеÑÑÐµÑ Ð·Ð°Ð´Ð°Ñ", IDC_TASKMGR, 102, 154, 86, 14
PUSHBUTTON "ÐÑмена", IDCANCEL, 198, 154, 70, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/sk-SK.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/sk-S…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/sk-SK.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/sk-SK.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -51,7 +51,7 @@
PUSHBUTTON "Uzamknúť poÄÃtaÄ", IDC_LOCK, 10, 135, 70, 14
PUSHBUTTON "Odhlásiť", IDC_LOGOFF, 90, 135, 70, 14
PUSHBUTTON "Vypnúť", IDC_SHUTDOWN, 170, 135, 70, 14
- PUSHBUTTON "Change password", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
+ PUSHBUTTON "Change password", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "Správca úloh", IDC_TASKMGR, 90, 154, 70, 14
PUSHBUTTON "Zrušiť", IDCANCEL, 170, 154, 70, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/tr-TR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/tr-T…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/tr-TR.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/tr-TR.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -48,7 +48,7 @@
PUSHBUTTON "Bilgisayarı Kilitle", IDC_LOCK, 10, 135, 76, 14
PUSHBUTTON "Oturumu Kapat", IDC_LOGOFF, 100, 135, 75, 14
PUSHBUTTON "Bilgisayarı Kapat", IDC_SHUTDOWN, 189, 135, 76, 14
- PUSHBUTTON "Åifreyi DeÄiÅtir", IDC_CHANGEPWD, 10, 154, 76, 14,
WS_DISABLED
+ PUSHBUTTON "Åifreyi DeÄiÅtir", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "Görev Yöneticisi", IDC_TASKMGR, 100, 154, 75, 14
PUSHBUTTON "Ä°ptal", IDCANCEL, 189, 154, 76, 14
END
Modified: trunk/reactos/dll/win32/msgina/lang/uk-UA.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/uk-U…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/uk-UA.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/uk-UA.rc [iso-8859-1] Sat Jan 25 15:56:09 2014
@@ -54,7 +54,7 @@
PUSHBUTTON "ÐлокÑваннÑ", IDC_LOCK, 6, 135, 70, 14
PUSHBUTTON "ÐиÑ
Ñд Ñз ÑиÑÑеми...", IDC_LOGOFF, 80, 135, 80, 14
PUSHBUTTON "ÐавеÑÑÐµÐ½Ð½Ñ ÑобоÑи...", IDC_SHUTDOWN, 165, 135,
86, 14
- PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
+ PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14
PUSHBUTTON "ÐиÑпеÑÑÐµÑ Ð·Ð°Ð²Ð´Ð°Ð½Ñ", IDC_TASKMGR, 80, 154, 80,
14
PUSHBUTTON "СкаÑÑваÑи", IDCANCEL, 165, 154, 86, 14
END