2006-11-08 11:47:44 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS Services
|
|
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
2007-08-31 09:27:11 +00:00
|
|
|
* FILE: base/applications/mscutils/servman/about.c
|
2006-11-08 11:47:44 +00:00
|
|
|
* PURPOSE: About dialog box message handler
|
2007-08-31 09:27:11 +00:00
|
|
|
* COPYRIGHT: Copyright 2005-2007 Ged Murphy <gedmurphy@reactos.org>
|
2006-11-08 11:47:44 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "precomp.h"
|
|
|
|
|
|
|
|
BOOL CALLBACK
|
|
|
|
AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|
|
|
{
|
|
|
|
switch (message)
|
|
|
|
{
|
|
|
|
case WM_INITDIALOG:
|
2007-09-12 13:50:51 +00:00
|
|
|
{
|
|
|
|
HWND hLicenseEditWnd;
|
2006-11-08 11:47:44 +00:00
|
|
|
|
|
|
|
hLicenseEditWnd = GetDlgItem(hDlg,
|
|
|
|
IDC_LICENSE_EDIT);
|
2007-08-31 09:27:11 +00:00
|
|
|
if (hLicenseEditWnd)
|
|
|
|
{
|
2007-09-12 13:50:51 +00:00
|
|
|
LPTSTR lpString;
|
|
|
|
|
|
|
|
if (AllocAndLoadString(&lpString,
|
|
|
|
hInstance,
|
|
|
|
IDS_LICENSE))
|
|
|
|
{
|
|
|
|
SetWindowText(hLicenseEditWnd,
|
|
|
|
lpString);
|
|
|
|
|
2007-10-07 00:03:57 +00:00
|
|
|
LocalFree(lpString);
|
2007-09-12 13:50:51 +00:00
|
|
|
}
|
2007-08-31 09:27:11 +00:00
|
|
|
}
|
2006-11-08 11:47:44 +00:00
|
|
|
|
|
|
|
return TRUE;
|
2007-09-12 13:50:51 +00:00
|
|
|
}
|
2006-11-08 11:47:44 +00:00
|
|
|
|
|
|
|
case WM_COMMAND:
|
|
|
|
|
|
|
|
if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
|
|
|
|
{
|
|
|
|
EndDialog(hDlg,
|
|
|
|
LOWORD(wParam));
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|