|
|
1.1 root 1:
2: /******************************************************************************\
3: * This is a part of the Microsoft Source Code Samples.
4: * Copyright (C) 1993 Microsoft Corporation.
5: * All rights reserved.
6: * This source code is only intended as a supplement to
7: * Microsoft Development Tools and/or WinHelp documentation.
8: * See these sources for detailed information regarding the
9: * Microsoft samples programs.
10: \******************************************************************************/
11:
12: /* uniput.h - header file */
13:
14: /* function prototypes, window procedures first. */
15: LRESULT CALLBACK MainWndProc (HWND, UINT, WPARAM, LPARAM);
16: LRESULT CALLBACK DisplayWndProc (HWND, UINT, WPARAM, LPARAM);
17: LRESULT CALLBACK StatusWndProc (HWND, UINT, WPARAM, LPARAM);
18: LRESULT CALLBACK About (HWND, UINT, WPARAM, LPARAM);
19:
20: int openDisplay(VOID);
21: int closeDisplay(VOID);
22:
23: /* Name of the display window window class */
24: #define DISPLAYCLASS TEXT("DisplayClass")
25:
26:
27: /* Define a value for the LOGFONT.lfCharSet
28: * This should be included in wingdi.h, but it
29: * was removed because the font mapper is not
30: * using it anyway in version 1.0. Currently
31: * scheduled to be included in NT ver 1.1.
32: */
33: #define UNICODE_CHARSET 1
34:
35:
36: /* menu IDs */
37: #define IDM_MDICASCADE 1001
38: #define IDM_MDITILE 1002
39:
40: #define IDM_SHOWHEX 2000
41: #define IDM_SHOWNAMES 2001
42:
43: #define IDM_CHARBASE 2400
44: #define IDM_CHAR10 2410
45: #define IDM_CHAR16 2416
46: #define IDM_CHAR20 2420
47: #define IDM_CHAR32 2432
48: #define IDM_CHAR40 2440
49: #define IDM_CHAR64 2464
50:
51: #define IDM_FONTBASE 2500
52: #define IDM_FONT18 2518
53: #define IDM_FONT36 2536
54: #define IDM_FONT72 2572
55:
56:
57: #define IDM_NEWWINDOW 3001
58: #define IDM_NEWFILE 3002
59: #define IDM_CLOSEFILE 3003
60:
61: #define IDM_HELP 4001
62: #define IDM_ABOUT 4002
63:
64:
65: /* USER messages sent between windows. */
66: #define WMU_NEWRANGE WM_USER+0x1001
67: #define WMU_NEWFONT WM_USER+0x1002
68: #define WMU_SETTARGETNAME WM_USER+0x1003
69: #define WMU_SETNCHAR WM_USER+0x1004
70: #define WMU_CHARACTER WM_USER+0x1005
71:
72:
73: /* define strings and flags for use in warning message boxes */
74: #define MBGETFONTDATAERR TEXT("Not a scalable font.")
75: #define MBERROR TEXT("Application Error.")
76: #define MBERRORFLAGS MB_OK | MB_ICONHAND
77:
78:
79: /* properties of the "Lucida Sans Unicode" font */
80: #define UCFONTHEIGHT 36
81: #define UCFONTWIDTH 16
82:
83: /* spacing for the fields in the status bar... */
84: #define SBORDER 6
85: #define SFIELD0 160
86: #define SFIELD1 80
87:
88:
89:
90: /* global variables */
91: extern HANDLE hInst;
92: extern HWND hwndMain;
93: extern HWND hwndClient;
94: extern HWND hwndStatus;
95: extern HWND hwndStatic0, hwndStatic1;
96:
97: extern int gShowhex, gShowNames;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.