mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
show logoff dialog in lean explorer
svn path=/trunk/; revision=14470
This commit is contained in:
parent
359d3bc253
commit
b01de1ffd4
3 changed files with 5 additions and 5 deletions
|
@ -1926,7 +1926,7 @@ BEGIN
|
|||
IDS_TITLE "Explorador do Reactos"
|
||||
IDS_START "Iniciar"
|
||||
IDS_LOGOFF "Terminar sessão..."
|
||||
IDS_TERMINATE "Terminar"
|
||||
IDS_TERMINATE "Terminar ROS Explorador"
|
||||
IDS_SHUTDOWN "Desligar..."
|
||||
IDS_LAUNCH "Executar..."
|
||||
IDS_START_HELP "Ajuda"
|
||||
|
|
|
@ -1834,7 +1834,7 @@ int StartMenuHandler::Command(int id, int code)
|
|||
|
||||
case IDC_LOGOFF:
|
||||
CloseStartMenu(id);
|
||||
ShowLogoffDialog(g_Globals._hwndDesktopBar, EWX_LOGOFF);
|
||||
ShowLogoffDialog(g_Globals._hwndDesktopBar);
|
||||
break;
|
||||
|
||||
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<RESTARTWINDOWSDLG> RestartDialog(TEXT("SHELL32"), 59);
|
||||
|
@ -1988,7 +1988,7 @@ void StartMenuHandler::ShowLogoffDialog(HWND hwndOwner, UINT flags)
|
|||
(*LogoffWindowsDialog)(0);
|
||||
/* The RestartDialog function prompts about some system setting change. This is not what we want to display here.
|
||||
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
|
||||
MessageBox(hwndOwner, TEXT("LogoffWindowsDialog() not yet implemented in SHELL32"), ResString(IDS_TITLE), MB_OK);
|
||||
|
|
|
@ -349,7 +349,7 @@ protected:
|
|||
int Command(int id, int code);
|
||||
|
||||
static void ShowLaunchDialog(HWND hwndOwner);
|
||||
static void ShowLogoffDialog(HWND hwndOwner, UINT flags);
|
||||
static void ShowLogoffDialog(HWND hwndOwner);
|
||||
static void ShowSearchDialog();
|
||||
static void ShowSearchComputer();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue