Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenabout.c
Go to the documentation of this file.
00001 /* 00002 * PROJECT: ReactOS Services 00003 * LICENSE: GPL - See COPYING in the top level directory 00004 * FILE: base/applications/mscutils/servman/about.c 00005 * PURPOSE: About dialog box message handler 00006 * COPYRIGHT: Copyright 2005-2007 Ged Murphy <gedmurphy@reactos.org> 00007 * 00008 */ 00009 00010 #include "precomp.h" 00011 00012 INT_PTR CALLBACK 00013 AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) 00014 { 00015 switch (message) 00016 { 00017 case WM_INITDIALOG: 00018 { 00019 HWND hLicenseEditWnd; 00020 00021 hLicenseEditWnd = GetDlgItem(hDlg, 00022 IDC_LICENSE_EDIT); 00023 if (hLicenseEditWnd) 00024 { 00025 LPTSTR lpString; 00026 00027 if (AllocAndLoadString(&lpString, 00028 hInstance, 00029 IDS_LICENSE)) 00030 { 00031 SetWindowText(hLicenseEditWnd, 00032 lpString); 00033 00034 LocalFree(lpString); 00035 } 00036 } 00037 00038 return TRUE; 00039 } 00040 00041 case WM_COMMAND: 00042 00043 if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL)) 00044 { 00045 EndDialog(hDlg, 00046 LOWORD(wParam)); 00047 return TRUE; 00048 } 00049 00050 break; 00051 } 00052 00053 return FALSE; 00054 } Generated on Fri May 25 2012 04:14:49 for ReactOS by
1.7.6.1
|