2010-02-27 19:51:54 +00:00
|
|
|
#ifndef __CHARMAP_PRECOMP_H
|
|
|
|
#define __CHARMAP_PRECOMP_H
|
2009-10-12 03:35:35 +00:00
|
|
|
|
2015-12-01 21:33:32 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winuser.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
|
2009-10-12 03:35:35 +00:00
|
|
|
#include "resource.h"
|
|
|
|
|
2011-05-01 19:16:58 +00:00
|
|
|
#define SIZEOF(_v) (sizeof(_v) / sizeof(*_v))
|
|
|
|
|
2015-12-01 21:29:12 +00:00
|
|
|
#define MAX_GLYPHS 65536
|
|
|
|
|
2009-10-12 03:35:35 +00:00
|
|
|
#define XCELLS 20
|
|
|
|
#define YCELLS 10
|
|
|
|
#define XLARGE 45
|
|
|
|
#define YLARGE 25
|
|
|
|
|
2011-02-20 10:55:48 +00:00
|
|
|
#define FM_SETFONT (WM_USER + 1)
|
|
|
|
#define FM_GETCHAR (WM_USER + 2)
|
|
|
|
#define FM_SETCHAR (WM_USER + 3)
|
|
|
|
#define FM_GETHFONT (WM_USER + 4)
|
2009-10-12 03:35:35 +00:00
|
|
|
|
|
|
|
extern HINSTANCE hInstance;
|
|
|
|
|
|
|
|
typedef struct _CELL
|
|
|
|
{
|
|
|
|
RECT CellExt;
|
|
|
|
RECT CellInt;
|
|
|
|
BOOL bActive;
|
|
|
|
BOOL bLarge;
|
|
|
|
WCHAR ch;
|
|
|
|
} CELL, *PCELL;
|
|
|
|
|
|
|
|
typedef struct _MAP
|
|
|
|
{
|
|
|
|
HWND hMapWnd;
|
|
|
|
HWND hParent;
|
|
|
|
HWND hLrgWnd;
|
|
|
|
SIZE ClientSize;
|
|
|
|
SIZE CellSize;
|
|
|
|
CELL Cells[YCELLS][XCELLS];
|
|
|
|
PCELL pActiveCell;
|
|
|
|
HFONT hFont;
|
|
|
|
LOGFONTW CurrentFont;
|
|
|
|
INT iYStart;
|
2015-12-09 21:55:19 +00:00
|
|
|
INT NumRows;
|
2015-12-01 21:29:12 +00:00
|
|
|
|
|
|
|
USHORT ValidGlyphs[MAX_GLYPHS];
|
|
|
|
USHORT NumValidGlyphs;
|
|
|
|
|
2009-10-12 03:35:35 +00:00
|
|
|
} MAP, *PMAP;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
NMHDR hdr;
|
|
|
|
WCHAR ch;
|
|
|
|
} MAPNOTIFY, *LPMAPNOTIFY;
|
|
|
|
|
2012-04-21 10:57:16 +00:00
|
|
|
typedef struct {
|
|
|
|
BOOL IsAdvancedView;
|
|
|
|
} SETTINGS;
|
|
|
|
|
2012-09-05 21:38:02 +00:00
|
|
|
extern SETTINGS Settings;
|
|
|
|
extern HWND hCharmapDlg;
|
2009-10-12 03:35:35 +00:00
|
|
|
|
|
|
|
LRESULT CALLBACK LrgCellWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
VOID ShowAboutDlg(HWND hWndParent);
|
|
|
|
|
|
|
|
BOOL RegisterMapClasses(HINSTANCE hInstance);
|
|
|
|
VOID UnregisterMapClasses(HINSTANCE hInstance);
|
2010-02-27 19:51:54 +00:00
|
|
|
|
2018-05-17 15:18:57 +00:00
|
|
|
int WINAPI GetUName(IN WORD wCharCode, OUT LPWSTR lpBuf);
|
|
|
|
|
2012-04-21 10:57:16 +00:00
|
|
|
/* charmap.c */
|
2016-04-05 20:29:48 +00:00
|
|
|
VOID UpdateStatusBar(WCHAR wch);
|
2012-04-21 10:57:16 +00:00
|
|
|
extern VOID ChangeMapFont(HWND hDlg);
|
|
|
|
|
|
|
|
/* settings.c */
|
|
|
|
extern void LoadSettings(void);
|
|
|
|
extern void SaveSettings(void);
|
|
|
|
|
2010-02-27 19:51:54 +00:00
|
|
|
#endif /* __CHARMAP_PRECOMP_H */
|