mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[TASKMGR]: Use taskmgr's icon for its run file dialog. Inspired by Wine.
svn path=/trunk/; revision=70444
This commit is contained in:
parent
4479984cbe
commit
d594928f07
1 changed files with 6 additions and 3 deletions
|
@ -34,16 +34,19 @@ void TaskManager_OnFileNew(void)
|
|||
LoadStringW(hInst, IDS_CREATENEWTASK, szTitle, sizeof(szTitle) / sizeof(szTitle[0]));
|
||||
LoadStringW(hInst, IDS_CREATENEWTASK_DESC, szText, sizeof(szText) / sizeof(szText[0]));
|
||||
|
||||
|
||||
hShell32 = LoadLibraryW(L"SHELL32.DLL");
|
||||
RunFileDlg = (RUNFILEDLG)(FARPROC)GetProcAddress(hShell32, (LPCSTR)0x3D);
|
||||
RunFileDlg = (RUNFILEDLG)(FARPROC)GetProcAddress(hShell32, (LPCSTR)61);
|
||||
|
||||
/* Show "Run..." dialog */
|
||||
if (RunFileDlg)
|
||||
{
|
||||
HICON hIcon = LoadIconW(hInst, MAKEINTRESOURCEW(IDI_TASKMANAGER));
|
||||
|
||||
/* 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, NULL, szText, RFF_CALCDIRECTORY);
|
||||
RunFileDlg(hMainWnd, hIcon, NULL, NULL, szText, RFF_CALCDIRECTORY);
|
||||
|
||||
DeleteObject(hIcon);
|
||||
}
|
||||
|
||||
FreeLibrary(hShell32);
|
||||
|
|
Loading…
Reference in a new issue