ReactOS 0.4.16-dev-306-g647d351
fontview.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_LOADSTRING   50
 
#define MAX_BUTTONNAME   30
 
#define HEADER_SIZE   37
 
#define BUTTON_POS_X   6
 
#define BUTTON_POS_Y   8
 
#define BUTTON_WIDTH   80
 
#define BUTTON_HEIGHT   21
 
#define BUTTON_PADDING   8
 
#define IDC_INSTALL   1001
 
#define IDC_PRINT   1002
 
#define IDC_DISPLAY   1003
 
#define IDC_PREV   1004
 
#define IDC_NEXT   1005
 

Functions

LRESULT CALLBACK MainWndProc (HWND, UINT, WPARAM, LPARAM)
 
BOOL LoadFont (LPWSTR lpCmdLine)
 

Variables

INT g_FontIndex
 

Macro Definition Documentation

◆ BUTTON_HEIGHT

#define BUTTON_HEIGHT   21

Definition at line 10 of file fontview.h.

◆ BUTTON_PADDING

#define BUTTON_PADDING   8

Definition at line 11 of file fontview.h.

◆ BUTTON_POS_X

#define BUTTON_POS_X   6

Definition at line 7 of file fontview.h.

◆ BUTTON_POS_Y

#define BUTTON_POS_Y   8

Definition at line 8 of file fontview.h.

◆ BUTTON_WIDTH

#define BUTTON_WIDTH   80

Definition at line 9 of file fontview.h.

◆ HEADER_SIZE

#define HEADER_SIZE   37

Definition at line 6 of file fontview.h.

◆ IDC_DISPLAY

#define IDC_DISPLAY   1003

Definition at line 15 of file fontview.h.

◆ IDC_INSTALL

#define IDC_INSTALL   1001

Definition at line 13 of file fontview.h.

◆ IDC_NEXT

#define IDC_NEXT   1005

Definition at line 17 of file fontview.h.

◆ IDC_PREV

#define IDC_PREV   1004

Definition at line 16 of file fontview.h.

◆ IDC_PRINT

#define IDC_PRINT   1002

Definition at line 14 of file fontview.h.

◆ MAX_BUTTONNAME

#define MAX_BUTTONNAME   30

Definition at line 4 of file fontview.h.

◆ MAX_LOADSTRING

#define MAX_LOADSTRING   50

Definition at line 3 of file fontview.h.

Function Documentation

◆ LoadFont()

BOOL LoadFont ( LPWSTR  lpCmdLine)

◆ MainWndProc()

LRESULT CALLBACK MainWndProc ( HWND  hwnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 585 of file fontview.c.

586{
587 switch (message)
588 {
589 case WM_CREATE:
590 return MainWnd_OnCreate(hwnd);
591
592 case WM_PAINT:
593 return MainWnd_OnPaint(hwnd);
594
595 case WM_SIZE:
596 return MainWnd_OnSize(hwnd);
597
598 case WM_COMMAND:
599 switch(LOWORD(wParam))
600 {
601 case IDC_INSTALL:
602 return MainWnd_OnInstall(hwnd);
603
604 case IDC_PRINT:
605 return Display_OnPrint(hwnd);
606
607 case IDC_PREV:
608 return MainWnd_OnPrev(hwnd);
609
610 case IDC_NEXT:
611 return MainWnd_OnNext(hwnd);
612 }
613 break;
614
615 case WM_DESTROY:
616 PostQuitMessage (0); /* send a WM_QUIT to the message queue */
617 break;
618
619 default: /* for messages that we don't deal with */
621 }
622
623 return 0;
624}
LRESULT Display_OnPrint(HWND hwnd)
Definition: display.c:422
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
static LRESULT MainWnd_OnNext(HWND hwnd)
Definition: fontview.c:567
static LRESULT MainWnd_OnInstall(HWND hwnd)
Definition: fontview.c:469
static LRESULT MainWnd_OnPaint(HWND hwnd)
Definition: fontview.c:453
static LRESULT MainWnd_OnCreate(HWND hwnd)
Definition: fontview.c:298
static LRESULT MainWnd_OnPrev(HWND hwnd)
Definition: fontview.c:549
static LRESULT MainWnd_OnSize(HWND hwnd)
Definition: fontview.c:415
#define IDC_NEXT
Definition: fontview.h:17
#define IDC_INSTALL
Definition: fontview.h:13
#define IDC_PRINT
Definition: fontview.h:14
#define IDC_PREV
Definition: fontview.h:16
#define LOWORD(l)
Definition: pedump.c:82
Definition: tftpd.h:60
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define WM_PAINT
Definition: winuser.h:1623
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define WM_CREATE
Definition: winuser.h:1611
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
#define WM_SIZE
Definition: winuser.h:1614
#define WM_COMMAND
Definition: winuser.h:1743
#define WM_DESTROY
Definition: winuser.h:1612

Variable Documentation

◆ g_FontIndex

INT g_FontIndex
extern

Definition at line 20 of file fontview.c.

Referenced by MainWnd_OnCreate(), MainWnd_OnNext(), and MainWnd_OnPrev().