ReactOS  0.4.14-dev-52-g6116262
about.c
Go to the documentation of this file.
1 #include <precomp.h>
2 
8 {
9  HWND hLicenseEditWnd;
10  HICON hIcon = NULL;
11  TCHAR strLicense[700];
12 
13  switch (message)
14  {
15  case WM_INITDIALOG:
16 
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,
31 
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  {
45  EndDialog(hDlg,
46  LOWORD(wParam));
47  return TRUE;
48  }
49 
50  break;
51  }
52 
53  return FALSE;
54 }
#define MAKEINTRESOURCE
Definition: winuser.h:591
Definition: tftpd.h:59
static HICON
Definition: imagelist.c:84
#define TRUE
Definition: types.h:120
#define IDOK
Definition: winuser.h:824
#define IMAGE_ICON
Definition: winuser.h:212
INT_PTR CALLBACK AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Definition: about.c:13
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2022
#define CALLBACK
Definition: compat.h:27
UINT_PTR WPARAM
Definition: windef.h:207
int32_t INT_PTR
Definition: typedefs.h:62
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
WPARAM wParam
Definition: combotst.c:138
#define ICON_SMALL
Definition: tnclass.cpp:48
HINSTANCE hInstance
Definition: charmap.c:20
#define IDI_IMAGESOFTICON
Definition: resource.h:13
smooth NULL
Definition: ftsmooth.c:416
LONG_PTR LPARAM
Definition: windef.h:208
char TCHAR
Definition: xmlstorage.h:189
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define WM_COMMAND
Definition: winuser.h:1722
#define IDS_LICENSE
Definition: resource.h:28
HICON hIcon
Definition: msconfig.c:44
#define SetWindowText
Definition: winuser.h:5758
unsigned int UINT
Definition: ndis.h:50
#define SendMessage
Definition: winuser.h:5744
#define LoadImage
Definition: winuser.h:5716
#define IDCANCEL
Definition: winuser.h:825
#define WM_INITDIALOG
Definition: winuser.h:1721
LPARAM lParam
Definition: combotst.c:139
#define LOWORD(l)
Definition: pedump.c:82
#define LoadString
Definition: winuser.h:5720
#define IDC_LICENSE_EDIT
Definition: resource.h:20