Vladimir Pankratov : taskmgr: Changed about form to standard shell32.
Alexandre Julliard
julliard at winehq.org
Tue Jul 1 08:27:24 CDT 2008
Module: wine
Branch: master
Commit: 92642828d69ed6831a89686c4c2e8d3c1fb67ba0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=92642828d69ed6831a89686c4c2e8d3c1fb67ba0
Author: Vladimir Pankratov <scriptkid at mail.ru>
Date: Mon Jun 30 12:38:38 2008 +0500
taskmgr: Changed about form to standard shell32.
---
programs/taskmgr/about.c | 39 ++++++++-------------------------------
1 files changed, 8 insertions(+), 31 deletions(-)
diff --git a/programs/taskmgr/about.c b/programs/taskmgr/about.c
index 424124d..948c7ea 100644
--- a/programs/taskmgr/about.c
+++ b/programs/taskmgr/about.c
@@ -24,6 +24,7 @@
#include <windows.h>
#include <commctrl.h>
#include <stdlib.h>
+#include <shellapi.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
@@ -31,38 +32,14 @@
#include "taskmgr.h"
-static INT_PTR CALLBACK AboutDialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
-{
- HWND hLicenseEditWnd;
- TCHAR strLicense[0x1000];
-
- switch (message)
- {
- case WM_INITDIALOG:
-
- hLicenseEditWnd = GetDlgItem(hDlg, IDC_LICENSE_EDIT);
-
- LoadString(hInst, IDS_LICENSE, strLicense, 0x1000);
-
- SetWindowText(hLicenseEditWnd, strLicense);
-
- return TRUE;
-
- case WM_COMMAND:
-
- if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
- {
- EndDialog(hDlg, LOWORD(wParam));
- return TRUE;
- }
-
- break;
- }
-
- return 0;
-}
void OnAbout(void)
{
- DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hMainWnd, AboutDialogWndProc);
+ WCHAR appname[256];
+ WCHAR copy[] = {'B','r','i','a','n',' ',
+ 'P','a','l','m','e','r',' ',
+ '<','b','r','i','a','n','p','@','r','e','a','c','t','o','s','.','o','r','g','>',0};
+ LoadStringW( hInst, IDC_TASKMGR, appname, sizeof(appname)/sizeof(WCHAR) );
+ ShellAboutW( hMainWnd, appname, copy,
+ LoadImageA( hInst, (LPSTR)IDI_TASKMANAGER, IMAGE_ICON, 32, 32, LR_SHARED ));
}
More information about the wine-cvs
mailing list