0bcae718040df5096238f179c34393ecdf09e8df
[reactos.git] / reactos / subsys / system / servman / about.c
1 #include "servman.h"
2
3 extern HINSTANCE hInstance;
4
5 BOOL CALLBACK
6 AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
7 {
8 HWND hLicenseEditWnd;
9 TCHAR strLicense[0x1000];
10
11 switch (message)
12 {
13 case WM_INITDIALOG:
14
15 hLicenseEditWnd = GetDlgItem(hDlg, IDC_LICENSE_EDIT);
16
17 LoadString(hInstance, IDS_LICENSE, strLicense, 0x1000);
18
19 SetWindowText(hLicenseEditWnd, strLicense);
20
21 return TRUE;
22
23 case WM_COMMAND:
24
25 if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
26 {
27 EndDialog(hDlg, LOWORD(wParam));
28 return TRUE;
29 }
30
31 break;
32 }
33
34 return 0;
35 }