taskmgr: Move Run dialog caption to resources, use the standard text.
This commit is contained in:
parent
225086547c
commit
f8a104f4a5
|
@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE
|
|||
BEGIN
|
||||
IDS_APP_TITLE "Opgavebehandler"
|
||||
IDC_TASKMGR "Opgavebehandler"
|
||||
IDS_RUNDLG_CAPTION "Create New Task"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
|
|
|
@ -428,6 +428,7 @@ STRINGTABLE DISCARDABLE
|
|||
BEGIN
|
||||
IDS_APP_TITLE "Task-Manager"
|
||||
IDC_TASKMGR "Task-Manager"
|
||||
IDS_RUNDLG_CAPTION "Create New Task"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
|
|
|
@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE
|
|||
BEGIN
|
||||
IDS_APP_TITLE "Task Manager"
|
||||
IDC_TASKMGR "Task Manager"
|
||||
IDS_RUNDLG_CAPTION "Create New Task"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
|
|
|
@ -434,6 +434,7 @@ STRINGTABLE DISCARDABLE
|
|||
BEGIN
|
||||
IDS_APP_TITLE "Gestionnaire des tâches"
|
||||
IDC_TASKMGR "Gestionnaire des tâches"
|
||||
IDS_RUNDLG_CAPTION "Create New Task"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
|
|
|
@ -434,6 +434,7 @@ STRINGTABLE DISCARDABLE
|
|||
BEGIN
|
||||
IDS_APP_TITLE "タスク マネージャ"
|
||||
IDC_TASKMGR "タスク マネージャ"
|
||||
IDS_RUNDLG_CAPTION "Create New Task"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
|
|
|
@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE
|
|||
BEGIN
|
||||
IDS_APP_TITLE "작업 관리자"
|
||||
IDC_TASKMGR "작엄 관리자"
|
||||
IDS_RUNDLG_CAPTION "Create New Task"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
|
|
|
@ -428,6 +428,7 @@ STRINGTABLE DISCARDABLE
|
|||
BEGIN
|
||||
IDS_APP_TITLE "Task Manager"
|
||||
IDC_TASKMGR "Task Manager"
|
||||
IDS_RUNDLG_CAPTION "Create New Task"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
|
|
|
@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE
|
|||
BEGIN
|
||||
IDS_APP_TITLE "Oppgavebehandler"
|
||||
IDC_TASKMGR "Oppgavebehandler"
|
||||
IDS_RUNDLG_CAPTION "Create New Task"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
|
|
|
@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE
|
|||
BEGIN
|
||||
IDS_APP_TITLE "Mened¿er zadañ"
|
||||
IDC_TASKMGR "Mened¿er zadañ"
|
||||
IDS_RUNDLG_CAPTION "Utwórz nowe zadanie"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
|
|
|
@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE
|
|||
BEGIN
|
||||
IDS_APP_TITLE "Äèñïåò÷åð çàäà÷"
|
||||
IDC_TASKMGR "Äèñïåò÷åð çàäà÷"
|
||||
IDS_RUNDLG_CAPTION "Create New Task"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
|
|
|
@ -435,6 +435,7 @@ STRINGTABLE DISCARDABLE
|
|||
BEGIN
|
||||
IDS_APP_TITLE "Upravitelj opravil"
|
||||
IDC_TASKMGR "Upravitelj opravil"
|
||||
IDS_RUNDLG_CAPTION "Create New Task"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
|
|
|
@ -433,6 +433,7 @@ STRINGTABLE DISCARDABLE
|
|||
BEGIN
|
||||
IDS_APP_TITLE "Görev Yöneticisi"
|
||||
IDC_TASKMGR "Görev Yöneticisi"
|
||||
IDS_RUNDLG_CAPTION "Create New Task"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
|
|
|
@ -4,15 +4,17 @@
|
|||
* 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_ABOUTBOX 103
|
||||
#define IDS_APP_TITLE 103
|
||||
#define IDM_ABOUT 104
|
||||
#define IDM_EXIT 105
|
||||
#define IDD_APPLICATION_PAGE 106
|
||||
#define IDI_TASKMGR 107
|
||||
#define IDI_SMALL 108
|
||||
#define IDC_TASKMGR 109
|
||||
#define IDR_MAINFRAME 128
|
||||
#define IDR_TASKMANAGER 130
|
||||
#define IDD_PROCESS_PAGE 133
|
||||
|
|
|
@ -54,10 +54,6 @@ void TaskManager_OnFileNew(void)
|
|||
HMODULE hShell32;
|
||||
RUNFILEDLG RunFileDlg;
|
||||
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"));
|
||||
RunFileDlg = (RUNFILEDLG)(FARPROC)GetProcAddress(hShell32, (char*)((long)0x3D));
|
||||
|
@ -70,12 +66,16 @@ void TaskManager_OnFileNew(void)
|
|||
|
||||
if (versionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT)
|
||||
{
|
||||
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, szTitle, -1, wTitle, 40);
|
||||
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, szText, -1, wText, 256);
|
||||
RunFileDlg(hMainWnd, 0, NULL, (LPCSTR)wTitle, (LPCSTR)wText, RFF_CALCDIRECTORY);
|
||||
WCHAR wTitle[64];
|
||||
LoadStringW(GetModuleHandleW(NULL), IDS_RUNDLG_CAPTION, wTitle, 64);
|
||||
RunFileDlg(hMainWnd, 0, NULL, (LPCSTR)wTitle, NULL, RFF_CALCDIRECTORY);
|
||||
}
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue