Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 19 of file licence.c.
Referenced by LicenceDlgProc().
{ HRSRC hResInfo; HGLOBAL hResMem; WCHAR *LicenseText; pLicInfo->hIcon = LoadImage(hApplet, MAKEINTRESOURCE(IDI_CPLSYSTEM), IMAGE_ICON, 16, 16, 0); SendMessage(hDlg, WM_SETICON, ICON_SMALL, (LPARAM)pLicInfo->hIcon); /* Load license from resource */ if (!(hResInfo = FindResource(hApplet, MAKEINTRESOURCE(RC_LICENSE), MAKEINTRESOURCE(RTDATA))) || !(hResMem = LoadResource(hApplet, hResInfo)) || !(LicenseText = LockResource(hResMem))) { ShowLastWin32Error(hDlg); return FALSE; } /* Insert the license into the edit control (unicode!) */ SetDlgItemText(hDlg, IDC_LICENCEEDIT, LicenseText); PostMessage(GetDlgItem(hDlg, IDC_LICENCEEDIT), EM_SETSEL, -1, 0); PostMessage(GetDlgItem(hDlg, IDC_LICENCEEDIT), WM_VSCROLL, SB_TOP, 0); return TRUE; }