mirror of
https://github.com/reactos/reactos.git
synced 2024-10-29 19:13:58 +00:00
36cc36e73f
Move imagesoft to applications and add it to build. Convert lang files to UTF-8. Fix casts and x64 warnings. Patch by Hermes Belusca. See bug 7185 for details. svn path=/trunk/; revision=57201
55 lines
1.2 KiB
C
55 lines
1.2 KiB
C
#include <precomp.h>
|
|
|
|
INT_PTR CALLBACK
|
|
AboutDialogProc(HWND hDlg,
|
|
UINT message,
|
|
WPARAM wParam,
|
|
LPARAM lParam)
|
|
{
|
|
HWND hLicenseEditWnd;
|
|
HICON hIcon = NULL;
|
|
TCHAR strLicense[700];
|
|
|
|
switch (message)
|
|
{
|
|
case WM_INITDIALOG:
|
|
|
|
hIcon = (HICON) LoadImage(hInstance,
|
|
MAKEINTRESOURCE(IDI_IMAGESOFTICON),
|
|
IMAGE_ICON,
|
|
16,
|
|
16,
|
|
0);
|
|
|
|
SendMessage(hDlg,
|
|
WM_SETICON,
|
|
ICON_SMALL,
|
|
(LPARAM)hIcon);
|
|
|
|
hLicenseEditWnd = GetDlgItem(hDlg,
|
|
IDC_LICENSE_EDIT);
|
|
|
|
LoadString(hInstance,
|
|
IDS_LICENSE,
|
|
strLicense,
|
|
sizeof(strLicense) / sizeof(TCHAR));
|
|
|
|
SetWindowText(hLicenseEditWnd,
|
|
strLicense);
|
|
return TRUE;
|
|
|
|
case WM_COMMAND:
|
|
if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
|
|
{
|
|
DestroyIcon(hIcon);
|
|
EndDialog(hDlg,
|
|
LOWORD(wParam));
|
|
return TRUE;
|
|
}
|
|
|
|
break;
|
|
}
|
|
|
|
return FALSE;
|
|
}
|