show logoff dialog in lean explorer

svn path=/trunk/; revision=14470
This commit is contained in:
Martin Fuchs 2005-04-03 11:38:08 +00:00
parent 359d3bc253
commit b01de1ffd4
3 changed files with 5 additions and 5 deletions

View file

@ -1926,7 +1926,7 @@ BEGIN
IDS_TITLE "Explorador do Reactos" IDS_TITLE "Explorador do Reactos"
IDS_START "Iniciar" IDS_START "Iniciar"
IDS_LOGOFF "Terminar sessão..." IDS_LOGOFF "Terminar sessão..."
IDS_TERMINATE "Terminar" IDS_TERMINATE "Terminar ROS Explorador"
IDS_SHUTDOWN "Desligar..." IDS_SHUTDOWN "Desligar..."
IDS_LAUNCH "Executar..." IDS_LAUNCH "Executar..."
IDS_START_HELP "Ajuda" IDS_START_HELP "Ajuda"

View file

@ -1834,7 +1834,7 @@ int StartMenuHandler::Command(int id, int code)
case IDC_LOGOFF: case IDC_LOGOFF:
CloseStartMenu(id); CloseStartMenu(id);
ShowLogoffDialog(g_Globals._hwndDesktopBar, EWX_LOGOFF); ShowLogoffDialog(g_Globals._hwndDesktopBar);
break; break;
case IDC_TERMINATE: case IDC_TERMINATE:
@ -1979,7 +1979,7 @@ void StartMenuHandler::ShowLaunchDialog(HWND hwndOwner)
} }
} }
void StartMenuHandler::ShowLogoffDialog(HWND hwndOwner, UINT flags) void StartMenuHandler::ShowLogoffDialog(HWND hwndOwner)
{ {
static DynamicFct<LOGOFFWINDOWSDIALOG> LogoffWindowsDialog(TEXT("SHELL32"), 54); static DynamicFct<LOGOFFWINDOWSDIALOG> LogoffWindowsDialog(TEXT("SHELL32"), 54);
// static DynamicFct<RESTARTWINDOWSDLG> RestartDialog(TEXT("SHELL32"), 59); // static DynamicFct<RESTARTWINDOWSDLG> RestartDialog(TEXT("SHELL32"), 59);
@ -1988,7 +1988,7 @@ void StartMenuHandler::ShowLogoffDialog(HWND hwndOwner, UINT flags)
(*LogoffWindowsDialog)(0); (*LogoffWindowsDialog)(0);
/* The RestartDialog function prompts about some system setting change. This is not what we want to display here. /* The RestartDialog function prompts about some system setting change. This is not what we want to display here.
else if (RestartDialog) else if (RestartDialog)
return (*RestartDialog)(hwndOwner, (LPWSTR)L"You selected <Log Off>.\n\n", flags) == 1; ///@todo ANSI string conversion if needed return (*RestartDialog)(hwndOwner, (LPWSTR)L"You selected <Log Off>.\n\n", EWX_LOGOFF) == 1; ///@todo ANSI string conversion if needed
*/ */
else else
MessageBox(hwndOwner, TEXT("LogoffWindowsDialog() not yet implemented in SHELL32"), ResString(IDS_TITLE), MB_OK); MessageBox(hwndOwner, TEXT("LogoffWindowsDialog() not yet implemented in SHELL32"), ResString(IDS_TITLE), MB_OK);

View file

@ -349,7 +349,7 @@ protected:
int Command(int id, int code); int Command(int id, int code);
static void ShowLaunchDialog(HWND hwndOwner); static void ShowLaunchDialog(HWND hwndOwner);
static void ShowLogoffDialog(HWND hwndOwner, UINT flags); static void ShowLogoffDialog(HWND hwndOwner);
static void ShowSearchDialog(); static void ShowSearchDialog();
static void ShowSearchComputer(); static void ShowSearchComputer();
}; };