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