- Do not send the WM_MOUSEACTIVATE message for a window that has no parent.
[reactos.git] / reactos / 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 "resource.h"
9
10 #define XCELLS 20
11 #define YCELLS 10
12 #define XLARGE 45
13 #define YLARGE 25
14
15 #define FM_SETFONT (WM_USER + 1)
16 #define FM_GETCHAR (WM_USER + 2)
17 #define FM_SETCHAR (WM_USER + 3)
18
19 extern HINSTANCE hInstance;
20
21 typedef struct _CELL
22 {
23 RECT CellExt;
24 RECT CellInt;
25 BOOL bActive;
26 BOOL bLarge;
27 WCHAR ch;
28 } CELL, *PCELL;
29
30 typedef struct _MAP
31 {
32 HWND hMapWnd;
33 HWND hParent;
34 HWND hLrgWnd;
35 SIZE ClientSize;
36 SIZE CellSize;
37 CELL Cells[YCELLS][XCELLS];
38 PCELL pActiveCell;
39 HFONT hFont;
40 LOGFONTW CurrentFont;
41 INT iYStart;
42 } MAP, *PMAP;
43
44 typedef struct {
45 NMHDR hdr;
46 WCHAR ch;
47 } MAPNOTIFY, *LPMAPNOTIFY;
48
49
50 LRESULT CALLBACK LrgCellWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
51
52 VOID ShowAboutDlg(HWND hWndParent);
53
54 BOOL RegisterMapClasses(HINSTANCE hInstance);
55 VOID UnregisterMapClasses(HINSTANCE hInstance);
56
57 #endif /* __CHARMAP_PRECOMP_H */