Visual C++ backend for rbuild (for now just a hacked mingw backend) and related compi...
[reactos.git] / base / applications / taskmgr / about.c
1 /*
2 * ReactOS Task Manager
3 *
4 * about.c
5 *
6 * Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23 #include <precomp.h>
24
25 INT_PTR CALLBACK AboutDialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
26
27 void OnAbout(void)
28 {
29 DialogBoxW(hInst, MAKEINTRESOURCEW(IDD_ABOUTBOX), hMainWnd, AboutDialogWndProc);
30 }
31
32 INT_PTR CALLBACK
33 AboutDialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
34 {
35 HWND hLicenseEditWnd;
36 WCHAR strLicense[0x1000];
37
38 switch (message)
39 {
40 case WM_INITDIALOG:
41
42 hLicenseEditWnd = GetDlgItem(hDlg, IDC_LICENSE_EDIT);
43
44 LoadStringW(hInst, IDS_LICENSE, strLicense, 0x1000);
45
46 SetWindowTextW(hLicenseEditWnd, strLicense);
47
48 return TRUE;
49
50 case WM_COMMAND:
51
52 if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
53 {
54 EndDialog(hDlg, LOWORD(wParam));
55 return TRUE;
56 }
57
58 break;
59 }
60
61 return 0;
62 }