ReactOS  0.4.14-dev-831-gef8c9239
about.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Utility Manager (Accessibility)
3  * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE: About dialog file
5  * COPYRIGHT: Copyright 2019 BiČ™oc George (fraizeraust99 at gmail dot com)
6  */
7 
8 /* INCLUDES *******************************************************************/
9 
10 #include "precomp.h"
11 
12 /* GLOBALS ********************************************************************/
13 
15 
16 /* FUNCTIONS ******************************************************************/
17 
41 {
42  switch (Msg)
43  {
44  case WM_INITDIALOG:
45  {
48  IMAGE_ICON,
49  0,
50  0,
52 
53  /* Set the icon within the dialog's title bar */
54  if (Globals.hIcon)
55  {
56  SendMessageW(hDlg, WM_SETICON, ICON_SMALL, (LPARAM)Globals.hIcon);
57  }
58 
59  return TRUE;
60  }
61 
62  case WM_COMMAND:
63  {
64  case IDOK:
65  case IDCANCEL:
67  EndDialog(hDlg, FALSE);
68  break;
69  }
70  }
71 
72  return FALSE;
73 }
74 
86 VOID ShowAboutDlg(HWND hDlgParent)
87 {
88  /* Display the "About" dialog when the user clicks on the "About" menu item */
91  hDlgParent,
92  AboutDlgProc);
93 }
UTILMAN_GLOBALS Globals
Definition: about.c:14
#define TRUE
Definition: types.h:120
#define IDOK
Definition: winuser.h:824
#define IMAGE_ICON
Definition: winuser.h:212
#define IDD_ABOUT_DIALOG
Definition: resource.h:62
VOID ShowAboutDlg(HWND hWndParent)
Definition: about.c:77
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2022
#define IDI_ICON_UTILMAN
Definition: resource.h:13
#define CALLBACK
Definition: compat.h:27
HINSTANCE hInstance
Definition: precomp.h:32
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
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_ UINT, _In_ int, _In_ int, _In_ UINT)
Definition: cursoricon.c:2172
LONG_PTR LPARAM
Definition: windef.h:208
HICON hIcon
Definition: precomp.h:33
#define DialogBoxW(i, t, p, f)
Definition: winuser.h:4374
#define LR_DEFAULTSIZE
Definition: winuser.h:1084
#define WM_COMMAND
Definition: winuser.h:1722
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
unsigned int UINT
Definition: ndis.h:50
struct @1587 Msg[]
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
#define IDCANCEL
Definition: winuser.h:825
#define WM_INITDIALOG
Definition: winuser.h:1721
LPARAM lParam
Definition: combotst.c:139
INT_PTR CALLBACK AboutDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
Definition: about.c:40