- fix toolbar position, deleted a line accidentally.
[reactos.git] / reactos / subsys / system / servman / about.c
1 /*
2 * PROJECT: ReactOS Services
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: subsys/system/servman/about.c
5 * PURPOSE: About dialog box message handler
6 * COPYRIGHT: Copyright 2005 Ged Murphy <gedmurphy@gmail.com>
7 *
8 */
9
10 //ShellAbout(hwnd, _T("test"), _T("test2"), MAKEINTRESOURCE(IDI_SM_ICON));
11
12 #include "servman.h"
13
14 extern HINSTANCE hInstance;
15
16 BOOL CALLBACK
17 AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
18 {
19 HWND hLicenseEditWnd;
20 TCHAR strLicense[0x1000];
21
22 switch (message)
23 {
24 case WM_INITDIALOG:
25
26 hLicenseEditWnd = GetDlgItem(hDlg, IDC_LICENSE_EDIT);
27
28 LoadString(hInstance, IDS_LICENSE, strLicense, 0x1000);
29
30 SetWindowText(hLicenseEditWnd, strLicense);
31
32 return TRUE;
33
34 case WM_COMMAND:
35
36 if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
37 {
38 EndDialog(hDlg, LOWORD(wParam));
39 return TRUE;
40 }
41
42 break;
43 }
44
45 return 0;
46 }