ReactOS 0.4.15-dev-8064-gdaf8068
about.c File Reference
#include "precomp.h"
Include dependency graph for about.c:

Go to the source code of this file.

Functions

static INT_PTR CALLBACK AboutDialogProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
 
VOID ShowAboutDlg (HWND hWndParent)
 

Function Documentation

◆ AboutDialogProc()

static INT_PTR CALLBACK AboutDialogProc ( HWND  hDlg,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 15 of file about.c.

19{
20 static HICON hIcon = NULL;
21
22 switch (message)
23 {
24 case WM_INITDIALOG:
25 {
26 HWND hLicenseEditWnd;
27 WCHAR strLicense[700];
28
32 16,
33 16,
34 0);
35 if (hIcon)
36 {
37 SendMessageW(hDlg,
38 WM_SETICON,
40 (LPARAM)hIcon);
41 }
42
43 hLicenseEditWnd = GetDlgItem(hDlg,
45
48 strLicense,
49 sizeof(strLicense) / sizeof(WCHAR)))
50 {
51 SetWindowTextW(hLicenseEditWnd,
52 strLicense);
53 }
54
55 return TRUE;
56 }
57
58 case WM_COMMAND:
59 {
60 if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
61 {
63 EndDialog(hDlg,
64 LOWORD(wParam));
65 return TRUE;
66 }
67
68 break;
69 }
70 }
71
72 return FALSE;
73}
#define IDC_LICENSE_EDIT
Definition: resource.h:20
#define IDI_ICON
Definition: resource.h:5
#define IDS_LICENSE
Definition: resource.h:28
HINSTANCE hInstance
Definition: charmap.c:19
WPARAM wParam
Definition: combotst.c:138
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
static HICON
Definition: imagelist.c:84
HICON hIcon
Definition: msconfig.c:44
#define LOWORD(l)
Definition: pedump.c:82
Definition: tftpd.h:60
#define ICON_SMALL
Definition: tnclass.cpp:48
LONG_PTR LPARAM
Definition: windef.h:208
#define IDCANCEL
Definition: winuser.h:831
#define IMAGE_ICON
Definition: winuser.h:212
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define WM_COMMAND
Definition: winuser.h:1740
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
Definition: cursoricon.c:2234
#define WM_INITDIALOG
Definition: winuser.h:1739
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define IDOK
Definition: winuser.h:830
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2084
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by MainWndCommand(), and ShowAboutDlg().

◆ ShowAboutDlg()

VOID ShowAboutDlg ( HWND  hWndParent)

Definition at line 77 of file about.c.

78{
83}
static INT_PTR CALLBACK AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Definition: about.c:15
#define IDD_ABOUTBOX
Definition: resource.h:8
#define DialogBoxW(i, t, p, f)
Definition: winuser.h:4399

Referenced by PanelWndProc().