ReactOS
0.4.15-dev-4914-g2220e56
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
{
38
RECT
CellExt
;
39
RECT
CellInt
;
40
BOOL
bActive
;
41
BOOL
bLarge
;
42
WCHAR
ch
;
43
}
CELL
, *
PCELL
;
44
45
typedef
struct
_MAP
46
{
47
HWND
hMapWnd
;
48
HWND
hParent
;
49
HWND
hLrgWnd
;
50
SIZE
ClientSize
;
51
SIZE
CellSize
;
52
CELL
Cells
[
YCELLS
][
XCELLS
];
53
PCELL
pActiveCell
;
54
HFONT
hFont
;
55
LOGFONTW
CurrentFont
;
56
INT
iYStart
;
57
INT
NumRows
;
58
INT
CharMap
;
59
60
USHORT
ValidGlyphs
[
MAX_GLYPHS
];
61
USHORT
NumValidGlyphs
;
62
63
}
MAP
, *
PMAP
;
64
65
typedef
struct
{
66
NMHDR
hdr
;
67
WCHAR
ch
;
68
}
MAPNOTIFY
, *
LPMAPNOTIFY
;
69
70
typedef
struct
{
71
BOOL
IsAdvancedView
;
72
}
SETTINGS
;
73
74
extern
SETTINGS
Settings
;
75
extern
HWND
hCharmapDlg
;
76
77
LRESULT
CALLBACK
LrgCellWndProc
(
HWND
hwnd
,
UINT
uMsg,
WPARAM
wParam
,
LPARAM
lParam
);
78
79
VOID
ShowAboutDlg
(
HWND
hWndParent
);
80
81
BOOL
RegisterMapClasses
(
HINSTANCE
hInstance
);
82
VOID
UnregisterMapClasses
(
HINSTANCE
hInstance
);
83
84
int
WINAPI
GetUName
(
IN
WORD
wCharCode,
OUT
LPWSTR
lpBuf);
85
86
/* charmap.c */
87
VOID
UpdateStatusBar
(
WCHAR
wch);
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 */
wingdi.h
SETTINGS::IsAdvancedView
BOOL IsAdvancedView
Definition:
precomp.h:71
hInstance
HINSTANCE hInstance
Definition:
charmap.c:20
_MAP::CurrentFont
LOGFONTW CurrentFont
Definition:
precomp.h:55
_MAP::hParent
HWND hParent
Definition:
precomp.h:48
IN
#define IN
Definition:
typedefs.h:39
_MAP::hFont
HFONT hFont
Definition:
precomp.h:54
MAPNOTIFY::hdr
NMHDR hdr
Definition:
precomp.h:66
PMAP
struct _MAP * PMAP
winbase.h
SETTINGS
Definition:
precomp.h:70
CALLBACK
#define CALLBACK
Definition:
compat.h:35
UnregisterMapClasses
VOID UnregisterMapClasses(HINSTANCE hInstance)
Definition:
map.c:741
WPARAM
UINT_PTR WPARAM
Definition:
windef.h:207
MAP
struct _MAP MAP
INT
int32_t INT
Definition:
typedefs.h:58
_CELL::CellInt
RECT CellInt
Definition:
precomp.h:39
wParam
WPARAM wParam
Definition:
combotst.c:138
_MAP::NumRows
INT NumRows
Definition:
precomp.h:57
tagRECT
Definition:
windef.h:305
_CELL
Definition:
precomp.h:36
_MAP
Definition:
precomp.h:45
LOGFONTW
Definition:
dimm.idl:58
resource.h
SaveSettings
void SaveSettings(void)
Definition:
settings.c:115
LoadSettings
void LoadSettings(void)
Definition:
settings.c:53
_MAP::pActiveCell
PCELL pActiveCell
Definition:
precomp.h:53
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
PCELL
struct _CELL * PCELL
_CELL::bLarge
BOOL bLarge
Definition:
precomp.h:41
UpdateStatusBar
VOID UpdateStatusBar(WCHAR wch)
Definition:
charmap.c:311
LrgCellWndProc
LRESULT CALLBACK LrgCellWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition:
lrgcell.c:68
MAPNOTIFY
Definition:
precomp.h:65
_CELL::CellExt
RECT CellExt
Definition:
precomp.h:38
LPARAM
LONG_PTR LPARAM
Definition:
windef.h:208
_MAP::NumValidGlyphs
USHORT NumValidGlyphs
Definition:
precomp.h:61
hCharmapDlg
HWND hCharmapDlg
Definition:
charmap.c:22
SETTINGS
struct _SETTINGS SETTINGS
MAX_GLYPHS
#define MAX_GLYPHS
Definition:
precomp.h:15
WCHAR
__wchar_t WCHAR
Definition:
xmlstorage.h:180
_CELL::bActive
BOOL bActive
Definition:
precomp.h:40
LPMAPNOTIFY
struct MAPNOTIFY * LPMAPNOTIFY
_MAP::CharMap
INT CharMap
Definition:
precomp.h:58
WINAPI
#define WINAPI
Definition:
msvc.h:6
WORD
unsigned short WORD
Definition:
ntddk_ex.h:93
_MAP::CellSize
SIZE CellSize
Definition:
precomp.h:51
windef.h
_MAP::ValidGlyphs
USHORT ValidGlyphs[MAX_GLYPHS]
Definition:
precomp.h:60
_MAP::hLrgWnd
HWND hLrgWnd
Definition:
precomp.h:49
hWndParent
static HWND hWndParent
Definition:
syslink.c:32
_MAP::ClientSize
SIZE ClientSize
Definition:
precomp.h:50
_CELL::ch
WCHAR ch
Definition:
precomp.h:42
ChangeMapFont
VOID ChangeMapFont(HWND hDlg)
Definition:
charmap.c:162
_MAP::iYStart
INT iYStart
Definition:
precomp.h:56
XCELLS
#define XCELLS
Definition:
precomp.h:17
_MAP::Cells
CELL Cells[YCELLS][XCELLS]
Definition:
precomp.h:52
tagNMHDR
Definition:
winuser.h:3136
Settings
SETTINGS Settings
Definition:
charmap.c:26
USHORT
unsigned short USHORT
Definition:
pedump.c:61
GetUName
int WINAPI GetUName(IN WORD wCharCode, OUT LPWSTR lpBuf)
Definition:
getuname.c:17
UINT
unsigned int UINT
Definition:
ndis.h:50
_MAP::hMapWnd
HWND hMapWnd
Definition:
precomp.h:47
HFONT
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
CELL
struct _CELL CELL
RegisterMapClasses
BOOL RegisterMapClasses(HINSTANCE hInstance)
Definition:
map.c:715
OUT
#define OUT
Definition:
typedefs.h:40
winuser.h
codePages
static const UINT codePages[]
Definition:
precomp.h:29
LPWSTR
WCHAR * LPWSTR
Definition:
xmlstorage.h:184
void
Definition:
nsiface.idl:2306
LRESULT
LONG_PTR LRESULT
Definition:
windef.h:209
hwnd
_In_ LONG _In_ HWND hwnd
Definition:
winddi.h:4022
MAPNOTIFY::ch
WCHAR ch
Definition:
precomp.h:67
YCELLS
#define YCELLS
Definition:
precomp.h:18
lParam
LPARAM lParam
Definition:
combotst.c:139
tagSIZE
Definition:
windef.h:333
ShowAboutDlg
VOID ShowAboutDlg(HWND hWndParent)
Definition:
about.c:77
base
applications
charmap
precomp.h
Generated on Sun Aug 7 2022 06:02:28 for ReactOS by
1.8.15