ReactOS  0.4.12-dev-51-ge94618b
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.

Referenced by MainWnd_OnCreate(), and MainWnd_OnSize().

◆ BUTTON_PADDING

#define BUTTON_PADDING   8

Definition at line 11 of file fontview.h.

Referenced by MainWnd_OnSize().

◆ BUTTON_POS_X

#define BUTTON_POS_X   6

Definition at line 7 of file fontview.h.

Referenced by MainWnd_OnCreate(), and MainWnd_OnSize().

◆ BUTTON_POS_Y

#define BUTTON_POS_Y   8

Definition at line 8 of file fontview.h.

Referenced by MainWnd_OnCreate(), and MainWnd_OnSize().

◆ BUTTON_WIDTH

#define BUTTON_WIDTH   80

Definition at line 9 of file fontview.h.

Referenced by MainWnd_OnCreate(), and MainWnd_OnSize().

◆ HEADER_SIZE

◆ 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.

Referenced by MainWnd_OnCreate(), MainWnd_OnSize(), MainWndProc(), StartDlgProc(), and TypeDlgProc().

◆ IDC_NEXT

◆ IDC_PREV

#define IDC_PREV   1004

◆ IDC_PRINT

#define IDC_PRINT   1002

Definition at line 14 of file fontview.h.

Referenced by ImageView_WndProc(), MainWnd_OnCreate(), MainWnd_OnSize(), and MainWndProc().

◆ MAX_BUTTONNAME

#define MAX_BUTTONNAME   30

Definition at line 4 of file fontview.h.

Referenced by MainWnd_OnCreate().

◆ MAX_LOADSTRING

#define MAX_LOADSTRING   50

Definition at line 3 of file fontview.h.

Referenced by _tWinMain(), and WndProc().

Function Documentation

◆ LoadFont()

BOOL LoadFont ( LPWSTR  lpCmdLine)

◆ MainWndProc()

LRESULT CALLBACK MainWndProc ( HWND  ,
UINT  ,
WPARAM  ,
LPARAM   
)

Definition at line 561 of file fontview.c.

562 {
563  switch (message)
564  {
565  case WM_CREATE:
566  return MainWnd_OnCreate(hwnd);
567 
568  case WM_PAINT:
569  return MainWnd_OnPaint(hwnd);
570 
571  case WM_SIZE:
572  return MainWnd_OnSize(hwnd);
573 
574  case WM_COMMAND:
575  switch(LOWORD(wParam))
576  {
577  case IDC_INSTALL:
578  return MainWnd_OnInstall(hwnd);
579 
580  case IDC_PRINT:
581  return Display_OnPrint(hwnd);
582 
583  case IDC_PREV:
584  return MainWnd_OnPrev(hwnd);
585 
586  case IDC_NEXT:
587  return MainWnd_OnNext(hwnd);
588  }
589  break;
590 
591  case WM_DESTROY:
592  PostQuitMessage (0); /* send a WM_QUIT to the message queue */
593  break;
594 
595  default: /* for messages that we don't deal with */
597  }
598 
599  return 0;
600 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
Definition: tftpd.h:59
static LRESULT MainWnd_OnSize(HWND hwnd)
Definition: fontview.c:389
#define IDC_NEXT
Definition: fontview.h:17
WPARAM wParam
Definition: combotst.c:138
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
static LRESULT MainWnd_OnPaint(HWND hwnd)
Definition: fontview.c:427
static LRESULT MainWnd_OnInstall(HWND hwnd)
Definition: fontview.c:443
#define WM_DESTROY
Definition: winuser.h:1591
#define WM_SIZE
Definition: winuser.h:1593
#define IDC_PREV
Definition: fontview.h:16
#define WM_PAINT
Definition: winuser.h:1602
static LRESULT MainWnd_OnNext(HWND hwnd)
Definition: fontview.c:543
static LRESULT MainWnd_OnCreate(HWND hwnd)
Definition: fontview.c:273
#define WM_COMMAND
Definition: winuser.h:1716
static LRESULT MainWnd_OnPrev(HWND hwnd)
Definition: fontview.c:525
#define WM_CREATE
Definition: winuser.h:1590
#define IDC_INSTALL
Definition: fontview.h:13
#define IDC_PRINT
Definition: fontview.h:14
LRESULT Display_OnPrint(HWND hwnd)
Definition: display.c:437
LPARAM lParam
Definition: combotst.c:139
#define LOWORD(l)
Definition: pedump.c:82
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)

Variable Documentation

◆ g_FontIndex

INT g_FontIndex

Definition at line 35 of file fontview.c.

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