Fix title and description in "Start"/"Run" dialog (Bug #164)

svn path=/trunk/; revision=7772
This commit is contained in:
Gé van Geldorp 2004-01-19 20:03:36 +00:00
parent c671ada626
commit 2a9ae29ea6
2 changed files with 7 additions and 1 deletions

View file

@ -129,6 +129,10 @@ INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
SetClassLongA (hwnd, GCL_HICON, (LPARAM)prfdp->hIcon) ;
SendMessageA (GetDlgItem (hwnd, 12297), STM_SETICON,
(WPARAM)LoadIconA (NULL, (LPSTR)IDI_WINLOGO), 0);
if (NULL != prfdp->lpstrDescription)
{
SetWindowTextA (GetDlgItem(hwnd, 12289), prfdp->lpstrDescription) ;
}
FillList (GetDlgItem (hwnd, 12298), NULL) ;
SetFocus (GetDlgItem (hwnd, 12298)) ;
return TRUE ;

View file

@ -1679,12 +1679,13 @@ void StartMenuHandler::ShowLaunchDialog(HWND hwndOwner)
{
///@todo All text phrases should be put into the resources.
static LPCSTR szTitle = "Create New Task";
static LPCSTR szText = "Type the name of a program, folder, document, or Internet resource, and Task Manager will open it for you.";
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 */
#define W_VER_NT 0
if ((HIWORD(GetVersion())>>14) == W_VER_NT) {
WCHAR wTitle[40], wText[256];
@ -1695,6 +1696,7 @@ void StartMenuHandler::ShowLaunchDialog(HWND hwndOwner)
(*RunFileDlg)(hwndOwner, 0, NULL, (LPCSTR)wTitle, (LPCSTR)wText, RFF_CALCDIRECTORY);
}
else
#endif
(*RunFileDlg)(hwndOwner, 0, NULL, szTitle, szText, RFF_CALCDIRECTORY);
}
}