3de098c93a65338ae1a3ad1bab4eddd68e8d1fbf
[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 #include "servman.h"
11
12 extern HINSTANCE hInstance;
13
14 BOOL CALLBACK
15 AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
16 {
17 HWND hLicenseEditWnd;
18 TCHAR strLicense[0x1000];
19
20 switch (message)
21 {
22 case WM_INITDIALOG:
23
24 hLicenseEditWnd = GetDlgItem(hDlg, IDC_LICENSE_EDIT);
25
26 LoadString(hInstance, IDS_LICENSE, strLicense, 0x1000);
27
28 SetWindowText(hLicenseEditWnd, strLicense);
29
30 return TRUE;
31
32 case WM_COMMAND:
33
34 if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
35 {
36 EndDialog(hDlg, LOWORD(wParam));
37 return TRUE;
38 }
39
40 break;
41 }
42
43 return 0;
44 }