ReactOS 0.4.15-dev-8390-g075894b
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

INT_PTR 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 24 of file about.c.

Function Documentation

◆ AboutDialogWndProc()

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

Definition at line 42 of file about.c.

43{
44 HWND hLicenseEditWnd;
45 TCHAR strLicense[0x1000];
46
47 switch (message) {
48 case WM_INITDIALOG:
49 hLicenseEditWnd = GetDlgItem(hDlg, IDC_LICENSE_EDIT);
50 LoadString(hInst, IDS_LICENSE, strLicense, 0x1000);
51 SetWindowText(hLicenseEditWnd, strLicense);
52 return TRUE;
53 case WM_COMMAND:
54 if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL)) {
55 EndDialog(hDlg, LOWORD(wParam));
56 return TRUE;
57 }
58 break;
59 }
60 return 0;
61}
#define IDC_LICENSE_EDIT
Definition: resource.h:20
#define IDS_LICENSE
Definition: resource.h:28
WPARAM wParam
Definition: combotst.c:138
#define TRUE
Definition: types.h:120
HINSTANCE hInst
Definition: dxdiag.c:13
#define LOWORD(l)
Definition: pedump.c:82
Definition: tftpd.h:60
#define IDCANCEL
Definition: winuser.h:831
#define WM_COMMAND
Definition: winuser.h:1740
#define WM_INITDIALOG
Definition: winuser.h:1739
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define IDOK
Definition: winuser.h:830
#define LoadString
Definition: winuser.h:5828
#define SetWindowText
Definition: winuser.h:5866
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
char TCHAR
Definition: xmlstorage.h:189

Referenced by ShowAboutBox().

◆ ShowAboutBox()

void ShowAboutBox ( HWND  hWnd)

Definition at line 63 of file about.c.

64{
66}
#define IDD_ABOUTBOX
Definition: resource.h:8
HWND hWnd
Definition: settings.c:17
INT_PTR CALLBACK AboutDialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Definition: about.c:42
#define MAKEINTRESOURCE
Definition: winuser.h:591
#define DialogBox
Definition: winuser.h:5770

Variable Documentation

◆ hInst

HINSTANCE hInst
extern

Definition at line 13 of file dxdiag.c.