Commit f8a104f4 authored by Mikołaj Zalewski's avatar Mikołaj Zalewski Committed by Alexandre Julliard

taskmgr: Move Run dialog caption to resources, use the standard text.

parent 22508654
...@@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE ...@@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE
BEGIN BEGIN
IDS_APP_TITLE "Opgavebehandler" IDS_APP_TITLE "Opgavebehandler"
IDC_TASKMGR "Opgavebehandler" IDC_TASKMGR "Opgavebehandler"
IDS_RUNDLG_CAPTION "Create New Task"
END END
STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE
......
...@@ -428,6 +428,7 @@ STRINGTABLE DISCARDABLE ...@@ -428,6 +428,7 @@ STRINGTABLE DISCARDABLE
BEGIN BEGIN
IDS_APP_TITLE "Task-Manager" IDS_APP_TITLE "Task-Manager"
IDC_TASKMGR "Task-Manager" IDC_TASKMGR "Task-Manager"
IDS_RUNDLG_CAPTION "Create New Task"
END END
STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE
......
...@@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE ...@@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE
BEGIN BEGIN
IDS_APP_TITLE "Task Manager" IDS_APP_TITLE "Task Manager"
IDC_TASKMGR "Task Manager" IDC_TASKMGR "Task Manager"
IDS_RUNDLG_CAPTION "Create New Task"
END END
STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE
......
...@@ -434,6 +434,7 @@ STRINGTABLE DISCARDABLE ...@@ -434,6 +434,7 @@ STRINGTABLE DISCARDABLE
BEGIN BEGIN
IDS_APP_TITLE "Gestionnaire des tches" IDS_APP_TITLE "Gestionnaire des tches"
IDC_TASKMGR "Gestionnaire des tches" IDC_TASKMGR "Gestionnaire des tches"
IDS_RUNDLG_CAPTION "Create New Task"
END END
STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE
......
...@@ -434,6 +434,7 @@ STRINGTABLE DISCARDABLE ...@@ -434,6 +434,7 @@ STRINGTABLE DISCARDABLE
BEGIN BEGIN
IDS_APP_TITLE "タスク マネージャ" IDS_APP_TITLE "タスク マネージャ"
IDC_TASKMGR "タスク マネージャ" IDC_TASKMGR "タスク マネージャ"
IDS_RUNDLG_CAPTION "Create New Task"
END END
STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE
......
...@@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE ...@@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE
BEGIN BEGIN
IDS_APP_TITLE "작업 관리자" IDS_APP_TITLE "작업 관리자"
IDC_TASKMGR "작엄 관리자" IDC_TASKMGR "작엄 관리자"
IDS_RUNDLG_CAPTION "Create New Task"
END END
STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE
......
...@@ -428,6 +428,7 @@ STRINGTABLE DISCARDABLE ...@@ -428,6 +428,7 @@ STRINGTABLE DISCARDABLE
BEGIN BEGIN
IDS_APP_TITLE "Task Manager" IDS_APP_TITLE "Task Manager"
IDC_TASKMGR "Task Manager" IDC_TASKMGR "Task Manager"
IDS_RUNDLG_CAPTION "Create New Task"
END END
STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE
......
...@@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE ...@@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE
BEGIN BEGIN
IDS_APP_TITLE "Oppgavebehandler" IDS_APP_TITLE "Oppgavebehandler"
IDC_TASKMGR "Oppgavebehandler" IDC_TASKMGR "Oppgavebehandler"
IDS_RUNDLG_CAPTION "Create New Task"
END END
STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE
......
...@@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE ...@@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE
BEGIN BEGIN
IDS_APP_TITLE "Meneder zada" IDS_APP_TITLE "Meneder zada"
IDC_TASKMGR "Meneder zada" IDC_TASKMGR "Meneder zada"
IDS_RUNDLG_CAPTION "Utwrz nowe zadanie"
END END
STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE
......
...@@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE ...@@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE
BEGIN BEGIN
IDS_APP_TITLE " " IDS_APP_TITLE " "
IDC_TASKMGR " " IDC_TASKMGR " "
IDS_RUNDLG_CAPTION "Create New Task"
END END
STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE
......
...@@ -435,6 +435,7 @@ STRINGTABLE DISCARDABLE ...@@ -435,6 +435,7 @@ STRINGTABLE DISCARDABLE
BEGIN BEGIN
IDS_APP_TITLE "Upravitelj opravil" IDS_APP_TITLE "Upravitelj opravil"
IDC_TASKMGR "Upravitelj opravil" IDC_TASKMGR "Upravitelj opravil"
IDS_RUNDLG_CAPTION "Create New Task"
END END
STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE
......
...@@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE ...@@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE
BEGIN BEGIN
IDS_APP_TITLE "Grev Yneticisi" IDS_APP_TITLE "Grev Yneticisi"
IDC_TASKMGR "Grev Yneticisi" IDC_TASKMGR "Grev Yneticisi"
IDS_RUNDLG_CAPTION "Create New Task"
END END
STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE
......
...@@ -4,15 +4,17 @@ ...@@ -4,15 +4,17 @@
* Used by taskmgr.rc * Used by taskmgr.rc
* *
*/ */
#define IDS_APP_TITLE 103
#define IDC_TASKMGR 109
#define IDS_RUNDLG_CAPTION 110
#define IDD_TASKMGR_DIALOG 102 #define IDD_TASKMGR_DIALOG 102
#define IDD_ABOUTBOX 103 #define IDD_ABOUTBOX 103
#define IDS_APP_TITLE 103
#define IDM_ABOUT 104 #define IDM_ABOUT 104
#define IDM_EXIT 105 #define IDM_EXIT 105
#define IDD_APPLICATION_PAGE 106 #define IDD_APPLICATION_PAGE 106
#define IDI_TASKMGR 107 #define IDI_TASKMGR 107
#define IDI_SMALL 108 #define IDI_SMALL 108
#define IDC_TASKMGR 109
#define IDR_MAINFRAME 128 #define IDR_MAINFRAME 128
#define IDR_TASKMANAGER 130 #define IDR_TASKMANAGER 130
#define IDD_PROCESS_PAGE 133 #define IDD_PROCESS_PAGE 133
......
...@@ -54,10 +54,6 @@ void TaskManager_OnFileNew(void) ...@@ -54,10 +54,6 @@ void TaskManager_OnFileNew(void)
HMODULE hShell32; HMODULE hShell32;
RUNFILEDLG RunFileDlg; RUNFILEDLG RunFileDlg;
OSVERSIONINFO versionInfo; OSVERSIONINFO versionInfo;
WCHAR wTitle[40];
WCHAR wText[256];
char szTitle[40] = "Create New Task";
char szText[256] = "Type the name of a program, folder, document, or Internet resource, and Task Manager will open it for you.";
hShell32 = LoadLibrary(_T("SHELL32.DLL")); hShell32 = LoadLibrary(_T("SHELL32.DLL"));
RunFileDlg = (RUNFILEDLG)(FARPROC)GetProcAddress(hShell32, (char*)((long)0x3D)); RunFileDlg = (RUNFILEDLG)(FARPROC)GetProcAddress(hShell32, (char*)((long)0x3D));
...@@ -70,12 +66,16 @@ void TaskManager_OnFileNew(void) ...@@ -70,12 +66,16 @@ void TaskManager_OnFileNew(void)
if (versionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT) if (versionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT)
{ {
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, szTitle, -1, wTitle, 40); WCHAR wTitle[64];
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, szText, -1, wText, 256); LoadStringW(GetModuleHandleW(NULL), IDS_RUNDLG_CAPTION, wTitle, 64);
RunFileDlg(hMainWnd, 0, NULL, (LPCSTR)wTitle, (LPCSTR)wText, RFF_CALCDIRECTORY); RunFileDlg(hMainWnd, 0, NULL, (LPCSTR)wTitle, NULL, RFF_CALCDIRECTORY);
} }
else else
RunFileDlg(hMainWnd, 0, NULL, szTitle, szText, RFF_CALCDIRECTORY); {
char szTitle[64];
LoadStringA(GetModuleHandleW(NULL), IDS_RUNDLG_CAPTION, szTitle, 64);
RunFileDlg(hMainWnd, 0, NULL, szTitle, NULL, RFF_CALCDIRECTORY);
}
} }
FreeLibrary(hShell32); FreeLibrary(hShell32);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment