mirror of
https://github.com/reactos/reactos.git
synced 2025-01-11 16:51:06 +00:00
Matthias Kupfer (matthias DOT kupfer AT informatik DOT tu-chemnitz DOT de)
- Give the Run Dialog resources a default title (only done in German and English resources so far, others still need to be done) - Add support for passing no title to RunFileDlg, so that it uses the default title - Pass no hardcoded english title in Explorer and Task-Manager. I slightly modified the patch to also remove the other hardcoded text passed in Explorer. See issue #3340 for more details. svn path=/trunk/; revision=33919
This commit is contained in:
parent
baa980036b
commit
e851af141d
6 changed files with 9 additions and 21 deletions
|
@ -43,7 +43,7 @@ void TaskManager_OnFileNew(void)
|
|||
{
|
||||
/* NOTE - don't check whether running on win 9x or NT, let's just
|
||||
assume that a unicode build only runs on NT */
|
||||
RunFileDlg(hMainWnd, 0, NULL, szTitle, szText, RFF_CALCDIRECTORY);
|
||||
RunFileDlg(hMainWnd, 0, NULL, NULL, szText, RFF_CALCDIRECTORY);
|
||||
}
|
||||
|
||||
FreeLibrary(hShell32);
|
||||
|
|
|
@ -2113,26 +2113,11 @@ void StartMenuHandler::ShowSearchComputer()
|
|||
|
||||
void StartMenuHandler::ShowLaunchDialog(HWND hwndOwner)
|
||||
{
|
||||
///@todo All text phrases should be put into the resources.
|
||||
static LPCSTR szTitle = "Run";
|
||||
static LPCSTR szText = "Type the name of a program, folder, document, or Internet resource, and Explorer will open it for you.";
|
||||
|
||||
static DynamicFct<RUNFILEDLG> RunFileDlg(TEXT("SHELL32"), 61);
|
||||
|
||||
// Show "Run..." dialog
|
||||
if (RunFileDlg) {
|
||||
#ifndef _ROS_ /* FIXME: our shell32 always expects Ansi strings */
|
||||
if ((HIWORD(GetVersion())>>14) == W_VER_NT) {
|
||||
WCHAR wTitle[40], wText[256];
|
||||
|
||||
MultiByteToWideChar(CP_ACP, 0, szTitle, -1, wTitle, 40);
|
||||
MultiByteToWideChar(CP_ACP, 0, szText, -1, wText, 256);
|
||||
|
||||
(*RunFileDlg)(hwndOwner, 0, NULL, (LPCSTR)wTitle, (LPCSTR)wText, RFF_CALCDIRECTORY);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
(*RunFileDlg)(hwndOwner, 0, NULL, szTitle, szText, RFF_CALCDIRECTORY);
|
||||
(*RunFileDlg)(hwndOwner, 0, NULL, NULL, NULL, RFF_CALCDIRECTORY);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -330,7 +330,10 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
|
|||
{
|
||||
case WM_INITDIALOG :
|
||||
prfdp = (RUNFILEDLGPARAMS *)lParam ;
|
||||
|
||||
if (prfdp->lpstrTitle)
|
||||
SetWindowTextA (hwnd, prfdp->lpstrTitle) ;
|
||||
|
||||
SetClassLongPtrW (hwnd, GCLP_HICON, (LPARAM)prfdp->hIcon) ;
|
||||
SendMessageW (GetDlgItem (hwnd, 12297), STM_SETICON,
|
||||
(WPARAM)LoadIconW (NULL, (LPCWSTR)IDI_WINLOGO), 0);
|
||||
|
|
|
@ -151,7 +151,7 @@ END
|
|||
|
||||
SHELL_RUN_DLG DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 0, 0, 227, 95
|
||||
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION ""
|
||||
CAPTION "Ausführen"
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
ICON "", 12297, 7, 11, 18, 20, WS_VISIBLE
|
||||
|
|
|
@ -149,7 +149,7 @@ END
|
|||
|
||||
SHELL_RUN_DLG DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 0, 0, 227, 95
|
||||
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION ""
|
||||
CAPTION "Run"
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
ICON "", 12297, 7, 11, 18, 20, WS_VISIBLE
|
||||
|
|
|
@ -149,7 +149,7 @@ END
|
|||
|
||||
SHELL_RUN_DLG DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 0, 0, 227, 95
|
||||
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION ""
|
||||
CAPTION "Run"
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
ICON "", 12297, 7, 11, 18, 20, WS_VISIBLE
|
||||
|
|
Loading…
Reference in a new issue