ReactOS  0.4.15-dev-1206-g731eddf
precomp.h
Go to the documentation of this file.
1 #ifndef __CHARMAP_PRECOMP_H
2 #define __CHARMAP_PRECOMP_H
3 
4 #include <stdarg.h>
5 #include <windef.h>
6 #include <winbase.h>
7 #include <winuser.h>
8 #include <wingdi.h>
9 
10 
11 #include "resource.h"
12 
13 #define SIZEOF(_v) (sizeof(_v) / sizeof(*_v))
14 
15 #define MAX_GLYPHS 65536
16 
17 #define XCELLS 20
18 #define YCELLS 10
19 #define XLARGE 45
20 #define YLARGE 25
21 
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)
27 
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
32 };
33 
34 extern HINSTANCE hInstance;
35 
36 typedef struct _CELL
37 {
43 } CELL, *PCELL;
44 
45 typedef struct _MAP
46 {
59 
62 
63 } MAP, *PMAP;
64 
65 typedef struct {
69 
70 typedef struct {
72 } SETTINGS;
73 
74 extern SETTINGS Settings;
75 extern HWND hCharmapDlg;
76 
78 
80 
83 
84 int WINAPI GetUName(IN WORD wCharCode, OUT LPWSTR lpBuf);
85 
86 /* charmap.c */
88 extern VOID ChangeMapFont(HWND hDlg);
89 
90 /* settings.c */
91 extern void LoadSettings(void);
92 extern void SaveSettings(void);
93 
94 #endif /* __CHARMAP_PRECOMP_H */
BOOL IsAdvancedView
Definition: precomp.h:71
HINSTANCE hInstance
Definition: charmap.c:20
LOGFONTW CurrentFont
Definition: precomp.h:55
HWND hParent
Definition: precomp.h:48
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define IN
Definition: typedefs.h:39
HFONT hFont
Definition: precomp.h:54
NMHDR hdr
Definition: precomp.h:66
struct _MAP * PMAP
#define CALLBACK
Definition: compat.h:35
VOID UnregisterMapClasses(HINSTANCE hInstance)
Definition: map.c:741
UINT_PTR WPARAM
Definition: windef.h:207
struct _MAP MAP
int32_t INT
Definition: typedefs.h:58
RECT CellInt
Definition: precomp.h:39
WPARAM wParam
Definition: combotst.c:138
INT NumRows
Definition: precomp.h:57
Definition: precomp.h:36
Definition: precomp.h:45
void SaveSettings(void)
Definition: settings.c:115
void LoadSettings(void)
Definition: settings.c:53
PCELL pActiveCell
Definition: precomp.h:53
unsigned int BOOL
Definition: ntddk_ex.h:94
struct _CELL * PCELL
BOOL bLarge
Definition: precomp.h:41
VOID UpdateStatusBar(WCHAR wch)
Definition: charmap.c:311
LRESULT CALLBACK LrgCellWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: lrgcell.c:68
RECT CellExt
Definition: precomp.h:38
LONG_PTR LPARAM
Definition: windef.h:208
USHORT NumValidGlyphs
Definition: precomp.h:61
HWND hCharmapDlg
Definition: charmap.c:22
struct _SETTINGS SETTINGS
#define MAX_GLYPHS
Definition: precomp.h:15
__wchar_t WCHAR
Definition: xmlstorage.h:180
BOOL bActive
Definition: precomp.h:40
struct MAPNOTIFY * LPMAPNOTIFY
INT CharMap
Definition: precomp.h:58
#define WINAPI
Definition: msvc.h:6
unsigned short WORD
Definition: ntddk_ex.h:93
SIZE CellSize
Definition: precomp.h:51
USHORT ValidGlyphs[MAX_GLYPHS]
Definition: precomp.h:60
HWND hLrgWnd
Definition: precomp.h:49
SIZE ClientSize
Definition: precomp.h:50
WCHAR ch
Definition: precomp.h:42
VOID ChangeMapFont(HWND hDlg)
Definition: charmap.c:162
INT iYStart
Definition: precomp.h:56
#define XCELLS
Definition: precomp.h:17
CELL Cells[YCELLS][XCELLS]
Definition: precomp.h:52
SETTINGS Settings
Definition: charmap.c:26
unsigned short USHORT
Definition: pedump.c:61
int WINAPI GetUName(IN WORD wCharCode, OUT LPWSTR lpBuf)
Definition: getuname.c:17
unsigned int UINT
Definition: ndis.h:50
HWND hMapWnd
Definition: precomp.h:47
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
struct _CELL CELL
BOOL RegisterMapClasses(HINSTANCE hInstance)
Definition: map.c:715
#define OUT
Definition: typedefs.h:40
static const UINT codePages[]
Definition: precomp.h:29
WCHAR * LPWSTR
Definition: xmlstorage.h:184
LONG_PTR LRESULT
Definition: windef.h:209
WCHAR ch
Definition: precomp.h:67
#define YCELLS
Definition: precomp.h:18
LPARAM lParam
Definition: combotst.c:139
VOID ShowAboutDlg(HWND hWndParent)
Definition: about.c:77