ReactOS  0.4.12-dev-43-g63b00d8
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 
27 extern HINSTANCE hInstance;
28 
29 typedef struct _CELL
30 {
36 } CELL, *PCELL;
37 
38 typedef struct _MAP
39 {
45  CELL Cells[YCELLS][XCELLS];
46  PCELL pActiveCell;
51 
52  USHORT ValidGlyphs[MAX_GLYPHS];
54 
55 } MAP, *PMAP;
56 
57 typedef struct {
61 
62 typedef struct {
64 } SETTINGS;
65 
66 extern SETTINGS Settings;
67 extern HWND hCharmapDlg;
68 
70 
72 
75 
76 int WINAPI GetUName(IN WORD wCharCode, OUT LPWSTR lpBuf);
77 
78 /* charmap.c */
80 extern VOID ChangeMapFont(HWND hDlg);
81 
82 /* settings.c */
83 extern void LoadSettings(void);
84 extern void SaveSettings(void);
85 
86 #endif /* __CHARMAP_PRECOMP_H */
BOOL IsAdvancedView
Definition: precomp.h:63
HINSTANCE hInstance
Definition: charmap.c:20
LOGFONTW CurrentFont
Definition: precomp.h:48
HWND hParent
Definition: precomp.h:41
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define IN
Definition: typedefs.h:38
HFONT hFont
Definition: precomp.h:47
NMHDR hdr
Definition: precomp.h:58
__wchar_t WCHAR
Definition: xmlstorage.h:180
struct _MAP * PMAP
#define CALLBACK
Definition: compat.h:27
VOID UnregisterMapClasses(HINSTANCE hInstance)
Definition: map.c:672
struct _MAP MAP
int32_t INT
Definition: typedefs.h:56
RECT CellInt
Definition: precomp.h:32
WPARAM wParam
Definition: combotst.c:138
INT NumRows
Definition: precomp.h:50
Definition: precomp.h:29
Definition: precomp.h:38
UINT_PTR WPARAM
Definition: windef.h:207
void SaveSettings(void)
Definition: settings.c:113
void LoadSettings(void)
Definition: settings.c:53
PCELL pActiveCell
Definition: precomp.h:46
LONG_PTR LPARAM
Definition: windef.h:208
struct _CELL * PCELL
BOOL bLarge
Definition: precomp.h:34
VOID UpdateStatusBar(WCHAR wch)
Definition: charmap.c:262
LRESULT CALLBACK LrgCellWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: lrgcell.c:68
RECT CellExt
Definition: precomp.h:31
USHORT NumValidGlyphs
Definition: precomp.h:53
HWND hCharmapDlg
Definition: charmap.c:22
struct _SETTINGS SETTINGS
#define MAX_GLYPHS
Definition: precomp.h:15
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL bActive
Definition: precomp.h:33
struct MAPNOTIFY * LPMAPNOTIFY
unsigned int UINT
Definition: ndis.h:50
unsigned short WORD
Definition: ntddk_ex.h:93
SIZE CellSize
Definition: precomp.h:44
HWND hLrgWnd
Definition: precomp.h:42
#define WINAPI
Definition: msvc.h:20
SIZE ClientSize
Definition: precomp.h:43
WCHAR ch
Definition: precomp.h:35
VOID ChangeMapFont(HWND hDlg)
Definition: charmap.c:113
INT iYStart
Definition: precomp.h:49
#define XCELLS
Definition: precomp.h:17
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
HWND hMapWnd
Definition: precomp.h:40
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
struct _CELL CELL
BOOL RegisterMapClasses(HINSTANCE hInstance)
Definition: map.c:646
#define OUT
Definition: typedefs.h:39
WCHAR * LPWSTR
Definition: xmlstorage.h:184
LONG_PTR LRESULT
Definition: windef.h:209
WCHAR ch
Definition: precomp.h:59
#define YCELLS
Definition: precomp.h:18
LPARAM lParam
Definition: combotst.c:139
VOID ShowAboutDlg(HWND hWndParent)
Definition: about.c:77