ReactOS 0.4.16-dev-297-gc569aee
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
29static 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
34extern HINSTANCE hInstance;
35
36typedef struct _CELL
37{
42
43typedef struct _MAP
44{
58
62
63typedef struct {
67
68typedef struct {
70} SETTINGS;
71
72extern SETTINGS Settings;
73extern HWND hCharmapDlg;
74
76
78
81
82int WINAPI GetUName(IN WORD wCharCode, OUT LPWSTR lpBuf);
83
84/* charmap.c */
86extern VOID ChangeMapFont(HWND hDlg);
87
88/* settings.c */
89extern void LoadSettings(void);
90extern void SaveSettings(void);
91
92#endif /* __CHARMAP_PRECOMP_H */
LRESULT CALLBACK LrgCellWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: lrgcell.c:68
#define MAX_GLYPHS
Definition: precomp.h:15
#define YCELLS
Definition: precomp.h:18
struct _MAP * PMAP
VOID UnregisterMapClasses(HINSTANCE hInstance)
Definition: map.c:875
HWND hCharmapDlg
Definition: charmap.c:21
VOID ChangeMapFont(HWND hDlg)
Definition: charmap.c:161
#define XCELLS
Definition: precomp.h:17
static const UINT codePages[]
Definition: precomp.h:29
BOOL RegisterMapClasses(HINSTANCE hInstance)
Definition: map.c:849
HINSTANCE hInstance
Definition: charmap.c:19
struct _CELL CELL
void SaveSettings(void)
Definition: settings.c:115
VOID ShowAboutDlg(HWND hWndParent)
Definition: about.c:77
SETTINGS Settings
Definition: charmap.c:25
struct _CELL * PCELL
struct MAPNOTIFY * LPMAPNOTIFY
void LoadSettings(void)
Definition: settings.c:53
struct _MAP MAP
int WINAPI GetUName(IN WORD wCharCode, OUT LPWSTR lpBuf)
Definition: getuname.c:17
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned short WORD
Definition: ntddk_ex.h:93
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
unsigned int UINT
Definition: ndis.h:50
unsigned short USHORT
Definition: pedump.c:61
void UpdateStatusBar(void)
Definition: solitaire.cpp:150
WCHAR ch
Definition: precomp.h:65
NMHDR hdr
Definition: precomp.h:64
BOOL IsAdvancedView
Definition: precomp.h:69
Definition: precomp.h:37
RECT CellExt
Definition: precomp.h:38
WCHAR ch
Definition: precomp.h:40
RECT CellInt
Definition: precomp.h:39
Definition: precomp.h:44
HWND hLrgWnd
Definition: precomp.h:47
INT iYStart
Definition: precomp.h:55
INT NumRows
Definition: precomp.h:56
SIZE ClientSize
Definition: precomp.h:48
USHORT ValidGlyphs[MAX_GLYPHS]
Definition: precomp.h:59
CELL Cells[YCELLS][XCELLS]
Definition: precomp.h:50
HWND hMapWnd
Definition: precomp.h:45
HFONT hFont
Definition: precomp.h:52
INT CaretX
Definition: precomp.h:54
HWND hParent
Definition: precomp.h:46
INT CaretY
Definition: precomp.h:54
SIZE CellSize
Definition: precomp.h:49
INT CharMap
Definition: precomp.h:57
LOGFONTW CurrentFont
Definition: precomp.h:53
USHORT NumValidGlyphs
Definition: precomp.h:60
PCELL pActiveCell
Definition: precomp.h:51
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184