ReactOS
0.4.16-dev-41-ge8c7597
Functions
about.c File Reference
#include "
precomp.h
"
Include dependency graph for about.c:
Go to the source code of this file.
Functions
INT_PTR
CALLBACK
AboutDialogProc
(
HWND
hDlg,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
Function Documentation
◆
AboutDialogProc()
INT_PTR
CALLBACK
AboutDialogProc
(
HWND
hDlg
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
Definition at line
4
of file
about.c
.
8
{
9
HWND
hLicenseEditWnd;
10
HICON
hIcon
=
NULL
;
11
TCHAR
strLicense[700];
12
13
switch
(
message
)
14
{
15
case
WM_INITDIALOG
:
16
17
hIcon
=
LoadImage
(
hInstance
,
18
MAKEINTRESOURCE
(
IDI_ICON
),
19
IMAGE_ICON
,
20
16,
21
16,
22
0);
23
24
SendMessage
(hDlg,
25
WM_SETICON,
26
ICON_SMALL
,
27
(
LPARAM
)
hIcon
);
28
29
hLicenseEditWnd =
GetDlgItem
(hDlg,
30
IDC_LICENSE_EDIT
);
31
32
LoadString
(
hInstance
,
33
IDS_LICENSE
,
34
strLicense,
35
sizeof
(strLicense) /
sizeof
(
TCHAR
));
36
37
SetWindowText
(hLicenseEditWnd,
38
strLicense);
39
return
TRUE
;
40
41
case
WM_COMMAND
:
42
if
((
LOWORD
(
wParam
) ==
IDOK
) || (
LOWORD
(
wParam
) ==
IDCANCEL
))
43
{
44
DestroyIcon
(
hIcon
);
45
EndDialog
(hDlg,
46
LOWORD
(
wParam
));
47
return
TRUE
;
48
}
49
50
break
;
51
}
52
53
return
FALSE
;
54
}
IDC_LICENSE_EDIT
#define IDC_LICENSE_EDIT
Definition:
resource.h:20
IDI_ICON
#define IDI_ICON
Definition:
resource.h:5
IDS_LICENSE
#define IDS_LICENSE
Definition:
resource.h:28
hInstance
HINSTANCE hInstance
Definition:
charmap.c:19
wParam
WPARAM wParam
Definition:
combotst.c:138
NULL
#define NULL
Definition:
types.h:112
TRUE
#define TRUE
Definition:
types.h:120
FALSE
#define FALSE
Definition:
types.h:117
void
Definition:
nsiface.idl:2307
HICON
static HICON
Definition:
imagelist.c:80
hIcon
HICON hIcon
Definition:
msconfig.c:44
LOWORD
#define LOWORD(l)
Definition:
pedump.c:82
message
Definition:
tftpd.h:60
ICON_SMALL
#define ICON_SMALL
Definition:
tnclass.cpp:48
LPARAM
LONG_PTR LPARAM
Definition:
windef.h:208
IDCANCEL
#define IDCANCEL
Definition:
winuser.h:834
IMAGE_ICON
#define IMAGE_ICON
Definition:
winuser.h:212
WM_COMMAND
#define WM_COMMAND
Definition:
winuser.h:1743
WM_INITDIALOG
#define WM_INITDIALOG
Definition:
winuser.h:1742
GetDlgItem
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
IDOK
#define IDOK
Definition:
winuser.h:833
SendMessage
#define SendMessage
Definition:
winuser.h:5855
LoadImage
#define LoadImage
Definition:
winuser.h:5827
LoadString
#define LoadString
Definition:
winuser.h:5831
SetWindowText
#define SetWindowText
Definition:
winuser.h:5869
MAKEINTRESOURCE
#define MAKEINTRESOURCE
Definition:
winuser.h:591
EndDialog
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
DestroyIcon
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition:
cursoricon.c:2097
TCHAR
char TCHAR
Definition:
xmlstorage.h:189
modules
rosapps
templates
old_wordpad
about.c
Generated on Wed Sep 18 2024 06:18:39 for ReactOS by
1.9.6