Implement the log-off dialog.

svn path=/trunk/; revision=61631
This commit is contained in:
Eric Kohl 2014-01-15 20:34:21 +00:00
parent a4ff1dbc49
commit c6a16a66e3
19 changed files with 243 additions and 3 deletions

View file

@ -311,6 +311,56 @@ OnChangePassword(
}
static INT_PTR CALLBACK
LogOffDialogProc(
IN HWND hwndDlg,
IN UINT uMsg,
IN WPARAM wParam,
IN LPARAM lParam)
{
switch (uMsg)
{
case WM_INITDIALOG:
return TRUE;
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDYES:
EndDialog(hwndDlg, IDYES);
return TRUE;
case IDNO:
EndDialog(hwndDlg, IDNO);
return TRUE;
}
break;
case WM_CLOSE:
EndDialog(hwndDlg, IDNO);
return TRUE;
}
return FALSE;
}
static
INT
OnLogOff(
IN HWND hwndDlg,
IN PGINA_CONTEXT pgContext)
{
return pgContext->pWlxFuncs->WlxDialogBoxParam(
pgContext->hWlx,
pgContext->hDllInstance,
MAKEINTRESOURCEW(IDD_LOGOFF_DLG),
hwndDlg,
LogOffDialogProc,
(LPARAM)pgContext);
}
static INT_PTR CALLBACK
LoggedOnWindowProc(
IN HWND hwndDlg,
@ -342,7 +392,8 @@ LoggedOnWindowProc(
EndDialog(hwndDlg, WLX_SAS_ACTION_LOCK_WKSTA);
return TRUE;
case IDC_LOGOFF:
EndDialog(hwndDlg, WLX_SAS_ACTION_LOGOFF);
if (OnLogOff(hwndDlg, pgContext) == IDYES)
EndDialog(hwndDlg, WLX_SAS_ACTION_LOGOFF);
return TRUE;
case IDC_SHUTDOWN:
EndDialog(hwndDlg, WLX_SAS_ACTION_SHUTDOWN_POWER_OFF);

View file

@ -100,6 +100,17 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Здравейте!"

View file

@ -105,6 +105,17 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Vítejte!"

View file

@ -44,7 +44,7 @@ BEGIN
LTEXT "<Logon date>", IDC_LOGONDATE, 15, 94, 245, 8
CTEXT "Was wollen Sie tun?", IDC_STATIC, 10, 119, 255, 8
PUSHBUTTON "Computer sperren", IDC_LOCK, 10, 135, 76, 14
PUSHBUTTON "Abmelden", IDC_LOGOFF, 100, 135, 75, 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 "Task-Manager", IDC_TASKMGR, 100, 154, 75, 14
@ -100,6 +100,17 @@ BEGIN
PUSHBUTTON "Abbrechen", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Von ReactOS abmelden"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Wollen Sie sich wirklich abmelden?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Ja", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "Nein", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Willkommen!"

View file

@ -44,7 +44,7 @@ BEGIN
LTEXT "<Logon date>", IDC_LOGONDATE, 15, 94, 245, 8
CTEXT "What do you want to do?", IDC_STATIC, 10, 119, 255, 8
PUSHBUTTON "Lock computer", IDC_LOCK, 10, 135, 76, 14
PUSHBUTTON "Log off", IDC_LOGOFF, 100, 135, 75, 14
PUSHBUTTON "Log off...", IDC_LOGOFF, 100, 135, 75, 14
PUSHBUTTON "Shutdown", IDC_SHUTDOWN, 189, 135, 76, 14
PUSHBUTTON "Change Password", IDC_CHANGEPWD, 10, 154, 76, 14, WS_DISABLED
PUSHBUTTON "Task manager", IDC_TASKMGR, 100, 154, 75, 14
@ -100,6 +100,17 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Welcome!"

View file

@ -102,6 +102,17 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "¡Bienvenido!"

View file

@ -100,6 +100,17 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Bienvenue!"

View file

@ -100,6 +100,17 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "ברוכים הבאים!"

View file

@ -100,6 +100,17 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Selamat datang!"

View file

@ -108,6 +108,17 @@ BEGIN
PUSHBUTTON "Cancella", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Benvenuti!"

View file

@ -100,6 +100,17 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "ようこそ!"

View file

@ -100,6 +100,17 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Velkommen!"

View file

@ -108,6 +108,17 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Witaj!"

View file

@ -102,6 +102,17 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Bun venit!"

View file

@ -102,6 +102,17 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Добро пожаловать!"

View file

@ -105,6 +105,17 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Vitajte!"

View file

@ -102,6 +102,17 @@ BEGIN
PUSHBUTTON "İptal", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Hoşgeldiniz!"

View file

@ -108,6 +108,17 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 218, 145, 50, 14
END
IDD_LOGOFF_DLG DIALOGEX 0, 0, 188, 60
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_POPUP
CAPTION "Log Off ReactOS"
FONT 8, "MS Shell Dlg", 400, 0, 1
BEGIN
ICON IDI_LOCKICON, -1, 7, 7, 20, 20
LTEXT "Are you sure you want to log off?", IDC_STATIC, 35, 16, 146, 8
PUSHBUTTON "Yes", IDYES, 41, 39, 50, 14, BS_DEFPUSHBUTTON
PUSHBUTTON "No", IDNO, 95, 39, 50, 14
END
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Ласкаво просимо!"

View file

@ -28,6 +28,8 @@
#define IDC_CHANGEPWD_NEWPWD1 1016
#define IDC_CHANGEPWD_NEWPWD2 1017
#define IDD_LOGOFF_DLG 107
#define IDI_ROSLOGO 20000
#define IDI_LOCKICON 21