fix msvc warnings
[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 #ifdef _MSC_VER
17 #pragma warning(disable : 4100)
18 #endif
19 BOOL CALLBACK
20 AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
21 {
22 HWND hLicenseEditWnd;
23 TCHAR strLicense[0x1000];
24
25 switch (message)
26 {
27 case WM_INITDIALOG:
28
29 hLicenseEditWnd = GetDlgItem(hDlg, IDC_LICENSE_EDIT);
30
31 LoadString(hInstance, IDS_LICENSE, strLicense, 0x1000);
32
33 SetWindowText(hLicenseEditWnd, strLicense);
34
35 return TRUE;
36
37 case WM_COMMAND:
38
39 if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
40 {
41 EndDialog(hDlg, LOWORD(wParam));
42 return TRUE;
43 }
44
45 break;
46 }
47
48 return 0;
49 }