mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 05:43:30 +00:00
527f2f9057
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
54 lines
1.2 KiB
C
54 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)
|
|
{
|
|
LPTSTR lpString;
|
|
|
|
if (AllocAndLoadString(&lpString,
|
|
hInstance,
|
|
IDS_LICENSE))
|
|
{
|
|
SetWindowText(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;
|
|
}
|