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
);
29 hIcon
= LoadImage(hApplet
,
30 MAKEINTRESOURCE(IDI_CPLSYSTEM
),
41 /* load license from resource */
42 if(!(hResInfo
= FindResource(hApplet
,
43 MAKEINTRESOURCE(RC_LICENSE
),
44 MAKEINTRESOURCE(RTDATA
))) ||
45 !(hResMem
= LoadResource(hApplet
, hResInfo
)) ||
46 !(LicenseText
= LockResource(hResMem
)))
48 ShowLastWin32Error(hDlg
);
52 /* insert the license into the edit control (unicode!) */
57 PostMessage(GetDlgItem(hDlg
, IDC_LICENCEEDIT
),
65 if ((LOWORD(wParam
) == IDOK
) || (LOWORD(wParam
) == IDCANCEL
))