-#ifndef __CHARMAP_PRECOMP_H\r
-#define __CHARMAP_PRECOMP_H\r
-#include <windows.h>\r
-#include <stdio.h>\r
-#include <tchar.h>\r
-#include <commctrl.h>\r
-#include "resource.h"\r
-\r
-#define XCELLS 20\r
-#define YCELLS 10\r
-#define XLARGE 45\r
-#define YLARGE 25\r
-\r
-#define FM_SETFONT (WM_USER + 1)\r
-\r
-extern HINSTANCE hInstance;\r
-\r
-\r
-typedef struct _CELL\r
-{\r
- RECT CellExt;\r
- RECT CellInt;\r
- BOOL bActive;\r
- BOOL bLarge;\r
- TCHAR ch;\r
-} CELL, *PCELL;\r
-\r
-typedef struct _MAP\r
-{\r
- HWND hMapWnd;\r
- HWND hParent;\r
- HWND hLrgWnd;\r
- SIZE ClientSize;\r
- SIZE CellSize;\r
- CELL Cells[YCELLS][XCELLS];\r
- PCELL pActiveCell;\r
- HFONT hFont;\r
- LOGFONT CurrentFont;\r
- INT iPage;\r
-} MAP, *PMAP;\r
-\r
-VOID ShowAboutDlg(HWND hWndParent);\r
-\r
-BOOL RegisterMapClasses(HINSTANCE hInstance);\r
-VOID UnregisterMapClasses(HINSTANCE hInstance);\r
-\r
-#endif /* __DEVMGMT_PRECOMP_H */\r
+#ifndef __CHARMAP_PRECOMP_H
+#define __CHARMAP_PRECOMP_H
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <windows.h>
+#include <commctrl.h>
+#include "resource.h"
+
+#define XCELLS 20
+#define YCELLS 10
+#define XLARGE 45
+#define YLARGE 25
+
+#define FM_SETFONT (WM_USER + 1)
+#define FM_GETCHAR (WM_USER + 2)
+#define FM_SETCHAR (WM_USER + 3)
+
+extern HINSTANCE hInstance;
+
+typedef struct _CELL
+{
+ RECT CellExt;
+ RECT CellInt;
+ BOOL bActive;
+ BOOL bLarge;
+ WCHAR ch;
+} CELL, *PCELL;
+
+typedef struct _MAP
+{
+ HWND hMapWnd;
+ HWND hParent;
+ HWND hLrgWnd;
+ SIZE ClientSize;
+ SIZE CellSize;
+ CELL Cells[YCELLS][XCELLS];
+ PCELL pActiveCell;
+ HFONT hFont;
+ LOGFONTW CurrentFont;
+ INT iYStart;
+} MAP, *PMAP;
+
+typedef struct {
+ NMHDR hdr;
+ WCHAR ch;
+} MAPNOTIFY, *LPMAPNOTIFY;
+
+
+LRESULT CALLBACK LrgCellWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
+
+VOID ShowAboutDlg(HWND hWndParent);
+
+BOOL RegisterMapClasses(HINSTANCE hInstance);
+VOID UnregisterMapClasses(HINSTANCE hInstance);
+
+#endif /* __CHARMAP_PRECOMP_H */