ReactOS  0.4.13-dev-544-gede3fdd
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 
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
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2022
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:1716
#define IDS_LICENSE
Definition: resource.h:28
HICON hIcon
Definition: msconfig.c:44
#define SetWindowText
Definition: winuser.h:5723
#define SendMessage
Definition: winuser.h:5709
#define LoadImage
Definition: winuser.h:5681
#define IDCANCEL
Definition: winuser.h:825
#define WM_INITDIALOG
Definition: winuser.h:1715
#define LOWORD(l)
Definition: pedump.c:82
#define LoadString
Definition: winuser.h:5685
#define IDC_LICENSE_EDIT
Definition: resource.h:20