mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
55 lines
1.2 KiB
C
55 lines
1.2 KiB
C
/*
|
|
* PROJECT: ReactOS Services
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* FILE: base/applications/mscutils/servman/about.c
|
|
* PURPOSE: About dialog box message handler
|
|
* COPYRIGHT: Copyright 2005-2007 Ged Murphy <gedmurphy@reactos.org>
|
|
*
|
|
*/
|
|
|
|
#include "precomp.h"
|
|
|
|
INT_PTR CALLBACK
|
|
AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|
{
|
|
switch (message)
|
|
{
|
|
case WM_INITDIALOG:
|
|
{
|
|
HWND hLicenseEditWnd;
|
|
|
|
hLicenseEditWnd = GetDlgItem(hDlg,
|
|
IDC_LICENSE_EDIT);
|
|
if (hLicenseEditWnd)
|
|
{
|
|
LPWSTR lpString;
|
|
|
|
if (AllocAndLoadString(&lpString,
|
|
hInstance,
|
|
IDS_LICENSE))
|
|
{
|
|
SetWindowTextW(hLicenseEditWnd,
|
|
lpString);
|
|
|
|
LocalFree(lpString);
|
|
}
|
|
}
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
case WM_COMMAND:
|
|
|
|
if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
|
|
{
|
|
EndDialog(hDlg,
|
|
LOWORD(wParam));
|
|
return TRUE;
|
|
}
|
|
|
|
break;
|
|
}
|
|
|
|
return FALSE;
|
|
}
|