Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenabout.c
Go to the documentation of this file.
00001 /* 00002 * PROJECT: ReactOS Device Managment 00003 * LICENSE: GPL - See COPYING in the top level directory 00004 * FILE: base/system/devmgmt/about.c 00005 * PURPOSE: About dialog box message handler 00006 * COPYRIGHT: Copyright 2006 Ged Murphy <gedmurphy@gmail.com> 00007 * 00008 */ 00009 00010 #include "precomp.h" 00011 00012 INT_PTR CALLBACK 00013 AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) 00014 { 00015 HWND hLicenseEditWnd; 00016 HICON hIcon = NULL; 00017 TCHAR strLicense[700]; 00018 00019 switch (message) 00020 { 00021 case WM_INITDIALOG: 00022 00023 hIcon = (HICON)LoadImage(hInstance, 00024 MAKEINTRESOURCE(IDI_MAIN_ICON), 00025 IMAGE_ICON, 00026 16, 00027 16, 00028 0); 00029 00030 SendMessage(hDlg, 00031 WM_SETICON, 00032 ICON_SMALL, 00033 (LPARAM)hIcon); 00034 00035 hLicenseEditWnd = GetDlgItem(hDlg, 00036 IDC_LICENSE_EDIT); 00037 00038 LoadString(hInstance, 00039 IDS_LICENSE, 00040 strLicense, 00041 sizeof(strLicense) / sizeof(TCHAR)); 00042 00043 SetWindowText(hLicenseEditWnd, 00044 strLicense); 00045 00046 return TRUE; 00047 00048 case WM_COMMAND: 00049 00050 if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL)) 00051 { 00052 DestroyIcon(hIcon); 00053 EndDialog(hDlg, 00054 LOWORD(wParam)); 00055 return TRUE; 00056 } 00057 00058 break; 00059 } 00060 00061 return FALSE; 00062 } Generated on Mon May 28 2012 04:16:29 for ReactOS by
1.7.6.1
|