ReactOS  0.4.14-dev-614-gbfd8a84
about.c File Reference
#include <windows.h>
#include <commctrl.h>
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include <process.h>
#include <stdio.h>
#include "main.h"
#include "about.h"
Include dependency graph for about.c:

Go to the source code of this file.

Macros

#define WIN32_LEAN_AND_MEAN
 

Functions

LRESULT CALLBACK AboutDialogWndProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
 
void ShowAboutBox (HWND hWnd)
 

Variables

HINSTANCE hInst
 

Macro Definition Documentation

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 26 of file about.c.

Function Documentation

◆ AboutDialogWndProc()

LRESULT CALLBACK AboutDialogWndProc ( HWND  hDlg,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 44 of file about.c.

45 {
46  HWND hLicenseEditWnd;
47  TCHAR strLicense[0x1000];
48 
49  switch (message) {
50  case WM_INITDIALOG:
51  hLicenseEditWnd = GetDlgItem(hDlg, IDC_LICENSE_EDIT);
52  LoadString(hInst, IDS_LICENSE, strLicense, 0x1000);
53  SetWindowText(hLicenseEditWnd, strLicense);
54  return TRUE;
55  case WM_COMMAND:
56  if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL)) {
57  EndDialog(hDlg, LOWORD(wParam));
58  return TRUE;
59  }
60  break;
61  }
62  return 0;
63 }
Definition: tftpd.h:59
#define TRUE
Definition: types.h:120
#define IDOK
Definition: winuser.h:824
HINSTANCE hInst
Definition: dxdiag.c:13
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
WPARAM wParam
Definition: combotst.c:138
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
#define SetWindowText
Definition: winuser.h:5832
#define IDCANCEL
Definition: winuser.h:825
#define WM_INITDIALOG
Definition: winuser.h:1721
#define LOWORD(l)
Definition: pedump.c:82
#define LoadString
Definition: winuser.h:5794
#define IDC_LICENSE_EDIT
Definition: resource.h:20

Referenced by ShowAboutBox().

◆ ShowAboutBox()

void ShowAboutBox ( HWND  hWnd)

Definition at line 65 of file about.c.

66 {
68 }
#define MAKEINTRESOURCE
Definition: winuser.h:591
HINSTANCE hInst
Definition: dxdiag.c:13
LRESULT CALLBACK AboutDialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Definition: about.c:44
HWND hWnd
Definition: settings.c:17
#define DialogBox
Definition: winuser.h:5736
#define IDD_ABOUTBOX
Definition: resource.h:8
INT_PTR(CALLBACK * DLGPROC)(HWND, UINT, WPARAM, LPARAM)
Definition: winuser.h:2871

Variable Documentation

◆ hInst

HINSTANCE hInst

Definition at line 13 of file dxdiag.c.

Referenced by AboutDialogWndProc(), OnAbout(), and ShowAboutBox().