[NTDLL]
[reactos.git] / base / applications / mscutils / servman / about.c
1 /*
2 * PROJECT: ReactOS Services
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: base/applications/mscutils/servman/about.c
5 * PURPOSE: About dialog box message handler
6 * COPYRIGHT: Copyright 2005-2007 Ged Murphy <gedmurphy@reactos.org>
7 *
8 */
9
10 #include "precomp.h"
11
12 INT_PTR CALLBACK
13 AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
14 {
15 switch (message)
16 {
17 case WM_INITDIALOG:
18 {
19 HWND hLicenseEditWnd;
20
21 hLicenseEditWnd = GetDlgItem(hDlg,
22 IDC_LICENSE_EDIT);
23 if (hLicenseEditWnd)
24 {
25 LPTSTR lpString;
26
27 if (AllocAndLoadString(&lpString,
28 hInstance,
29 IDS_LICENSE))
30 {
31 SetWindowText(hLicenseEditWnd,
32 lpString);
33
34 LocalFree(lpString);
35 }
36 }
37
38 return TRUE;
39 }
40
41 case WM_COMMAND:
42
43 if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
44 {
45 EndDialog(hDlg,
46 LOWORD(wParam));
47 return TRUE;
48 }
49
50 break;
51 }
52
53 return FALSE;
54 }