5899180bb4373332d8ad3f5915f6da35d51f140c
1 #ifndef __CHARMAP_PRECOMP_H
2 #define __CHARMAP_PRECOMP_H
13 #define SIZEOF(_v) (sizeof(_v) / sizeof(*_v))
15 #define MAX_GLYPHS 65536
22 #define FM_SETFONT (WM_USER + 1)
23 #define FM_GETCHAR (WM_USER + 2)
24 #define FM_SETCHAR (WM_USER + 3)
25 #define FM_GETHFONT (WM_USER + 4)
26 #define FM_SETCHARMAP (WM_USER + 5)
28 // the code pages to display in the advanced 'character set' combobox
29 static const UINT codePages
[] = {
30 864, 775, 863, 855, 737, 856, 862, 861, 852, 869, 850, 858, 865, 860, 866, 857, 437, // OEM code pages
31 1256, 1257, 1250, 1251, 1253, 1255, 932, 949, 1252, 936, 874, 950, 1254, 1258 // ANSI code pages
34 extern HINSTANCE hInstance
;
52 CELL Cells
[YCELLS
][XCELLS
];
60 USHORT ValidGlyphs
[MAX_GLYPHS
];
61 USHORT NumValidGlyphs
;
68 } MAPNOTIFY
, *LPMAPNOTIFY
;
74 extern SETTINGS Settings
;
75 extern HWND hCharmapDlg
;
77 LRESULT CALLBACK
LrgCellWndProc(HWND hwnd
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
79 VOID
ShowAboutDlg(HWND hWndParent
);
81 BOOL
RegisterMapClasses(HINSTANCE hInstance
);
82 VOID
UnregisterMapClasses(HINSTANCE hInstance
);
84 int WINAPI
GetUName(IN WORD wCharCode
, OUT LPWSTR lpBuf
);
87 VOID
UpdateStatusBar(WCHAR wch
);
88 extern VOID
ChangeMapFont(HWND hDlg
);
91 extern void LoadSettings(void);
92 extern void SaveSettings(void);
94 #endif /* __CHARMAP_PRECOMP_H */