2289e965fada334c7f29f3cd4a874f2ddb9e018a
2 * PROJECT: ReactOS System Control Panel Applet
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: dll/cpl/sysdm/general.c
5 * PURPOSE: Licence dialog box message handler
6 * COPYRIGHT: Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
14 LicenceDlgProc(HWND hDlg
,
24 UNREFERENCED_PARAMETER(lParam
);
30 hIcon
= LoadImage(hApplet
,
31 MAKEINTRESOURCE(IDI_CPLSYSTEM
),
42 /* load license from resource */
43 if(!(hResInfo
= FindResource(hApplet
,
44 MAKEINTRESOURCE(RC_LICENSE
),
45 MAKEINTRESOURCE(RTDATA
))) ||
46 !(hResMem
= LoadResource(hApplet
, hResInfo
)) ||
47 !(LicenseText
= LockResource(hResMem
)))
49 ShowLastWin32Error(hDlg
);
53 /* insert the license into the edit control (unicode!) */
58 PostMessage(GetDlgItem(hDlg
, IDC_LICENCEEDIT
),
68 if ((LOWORD(wParam
) == IDOK
) || (LOWORD(wParam
) == IDCANCEL
))