[NTDLL]
[reactos.git] / base / applications / charmap / precomp.h
1 #pragma once
2
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <windows.h>
6 #include <commctrl.h>
7 #include "resource.h"
8
9 #define XCELLS 20
10 #define YCELLS 10
11 #define XLARGE 45
12 #define YLARGE 25
13
14 #define FM_SETFONT (WM_USER + 1)
15 #define FM_GETCHAR (WM_USER + 2)
16 #define FM_SETCHAR (WM_USER + 3)
17
18 extern HINSTANCE hInstance;
19
20 typedef struct _CELL
21 {
22 RECT CellExt;
23 RECT CellInt;
24 BOOL bActive;
25 BOOL bLarge;
26 WCHAR ch;
27 } CELL, *PCELL;
28
29 typedef struct _MAP
30 {
31 HWND hMapWnd;
32 HWND hParent;
33 HWND hLrgWnd;
34 SIZE ClientSize;
35 SIZE CellSize;
36 CELL Cells[YCELLS][XCELLS];
37 PCELL pActiveCell;
38 HFONT hFont;
39 LOGFONTW CurrentFont;
40 INT iYStart;
41 } MAP, *PMAP;
42
43 typedef struct {
44 NMHDR hdr;
45 WCHAR ch;
46 } MAPNOTIFY, *LPMAPNOTIFY;
47
48
49 LRESULT CALLBACK LrgCellWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
50
51 VOID ShowAboutDlg(HWND hWndParent);
52
53 BOOL RegisterMapClasses(HINSTANCE hInstance);
54 VOID UnregisterMapClasses(HINSTANCE hInstance);