ReactOS 0.4.16-dev-197-g92996da
about.c
Go to the documentation of this file.
1/*
2 * ReactOS About Dialog Box
3 *
4 * Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21#ifdef _MSC_VER
22#include "stdafx.h"
23#else
24#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
25#include <windows.h>
26#include <commctrl.h>
27#include <stdlib.h>
28#include <malloc.h>
29#include <memory.h>
30#include <tchar.h>
31#include <process.h>
32#include <stdio.h>
33#endif
34
35#include "main.h"
36#include "about.h"
37
38
39extern HINSTANCE hInst;
40
41
43{
44 HWND hLicenseEditWnd;
45 TCHAR strLicense[0x1000];
46
47 switch (message) {
48 case WM_INITDIALOG:
49 hLicenseEditWnd = GetDlgItem(hDlg, IDC_LICENSE_EDIT);
50 LoadString(hInst, IDS_LICENSE, strLicense, 0x1000);
51 SetWindowText(hLicenseEditWnd, strLicense);
52 return TRUE;
53 case WM_COMMAND:
54 if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL)) {
55 EndDialog(hDlg, LOWORD(wParam));
56 return TRUE;
57 }
58 break;
59 }
60 return 0;
61}
62
64{
66}
67
#define IDD_ABOUTBOX
Definition: resource.h:8
#define IDC_LICENSE_EDIT
Definition: resource.h:20
#define IDS_LICENSE
Definition: resource.h:28
HWND hWnd
Definition: settings.c:17
void ShowAboutBox(HWND hWnd)
Definition: about.c:12
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define TRUE
Definition: types.h:120
#define CALLBACK
Definition: compat.h:35
HINSTANCE hInst
Definition: dxdiag.c:13
INT_PTR CALLBACK AboutDialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Definition: about.c:42
unsigned int UINT
Definition: ndis.h:50
#define LOWORD(l)
Definition: pedump.c:82
Definition: tftpd.h:60
int32_t INT_PTR
Definition: typedefs.h:64
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
#define IDCANCEL
Definition: winuser.h:834
#define WM_COMMAND
Definition: winuser.h:1743
#define WM_INITDIALOG
Definition: winuser.h:1742
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define IDOK
Definition: winuser.h:833
#define LoadString
Definition: winuser.h:5831
#define SetWindowText
Definition: winuser.h:5869
#define MAKEINTRESOURCE
Definition: winuser.h:591
#define DialogBox
Definition: winuser.h:5773
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
char TCHAR
Definition: xmlstorage.h:189