|
|
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: //
7: // This source code is only intended as a supplement to
8: // Microsoft Development Tools and/or WinHelp documentation.
9: // See these sources for detailed information regarding the
10: // Microsoft samples programs.
11: //-----------------------------------------------------------------------------
12:
13: #include <windows.h>
14: #include "app.h"
15:
16: Grid ICON Grid.ico
17:
18: Grid MENU
19: {
20: POPUP "&File"
21: {
22: MENUITEM "&Print...", IDM_PRINT,
23: MENUITEM SEPARATOR
24: MENUITEM "E&xit", IDM_EXIT
25: }
26: POPUP "&View"
27: {
28: MENUITEM "&Next Page", IDM_NEXTPAGE,
29: MENUITEM "&Prev Page", IDM_PREVPAGE,
30: MENUITEM SEPARATOR
31: MENUITEM "&Next Section", IDM_NEXTSECTION,
32: MENUITEM "&Prev Section", IDM_PREVSECTION,
33: MENUITEM SEPARATOR
34: MENUITEM "Zoom &In", IDM_ZOOMIN,
35: MENUITEM "Zoom &Out", IDM_ZOOMOUT,
36: }
37: POPUP "&Options"
38: {
39: MENUITEM "&Font", IDM_FONT,
40: MENUITEM SEPARATOR
41: MENUITEM "&Decimal", IDM_DECIMAL,
42: }
43: POPUP "\a&Help", HELP
44: {
45: MENUITEM "&Help", IDM_HELP
46: MENUITEM "&About...", IDM_ABOUT
47: }
48:
49: }
50:
51: AboutBox DIALOG 20, 20, 160, 80
52: STYLE WS_POPUP | WS_DLGFRAME
53: {
54: CTEXT "GridFont" -1, 0. 12, 160, 8
55: ICON "Grid" -1, 8, 8, 0, 0
56: CTEXT "Unicode Sample Program" -1, 0, 36, 160, 8
57: CTEXT "(c) Microsoft Corporation, 1992-1993" -1, 0, 48, 160, 8
58: DEFPUSHBUTTON "OK" IDOK, 64,60, 32, 14, WS_GROUP
59: }
60:
61: PrintDlgBox DIALOG 40, 40, 120, 40
62: STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
63: {
64: CTEXT "Cancel Printing", -1, 4, 6, 120, 12
65: DEFPUSHBUTTON "Cancel", IDCANCEL, 44, 22, 32, 14, WS_GROUP
66: }
67:
68:
69: STRINGTABLE
70: {
71: 0, "Control"
72: 1, "ASCII"
73: 2, "Control"
74: 3, "Latin 1"
75: 4, "European Latin"
76: 5, "Extended Latin"
77: 6, "Unassigned"
78: 7, "Standard Phonetic"
79: 8, "Modifier Letters"
80: 9, "General Diacritics"
81: 10, "Greek"
82: 11, "Cyrillic"
83: 12, "Unassigned"
84: 13, "Armenian"
85: 14, "Hebrew"
86: 15, "Arabic"
87: 16, "Unassigned"
88: 17, "Devanagari"
89: 18, "Bengali"
90: 19, "Gurmukhi"
91: 20, "Gujarati"
92: 21, "Oriya"
93: 22, "Tamil"
94: 23, "Telugu"
95: 24, "Kannada"
96: 25, "Malayalam"
97: 26, "Unassigned"
98: 27, "Thai"
99: 28, "Lao"
100: 29, "Unassigned"
101: 30, "Tibetan"
102: 31, "Unassigned"
103: 32, "Georgian"
104: 33, "Unassigned"
105: 34, "General Punctuation"
106: 35, "Sups & Subs"
107: 36, "Currency"
108: 37, "Diacritics"
109: 38, "Letterlike Symbols"
110: 39, "Number Forms"
111: 40, "Arrows"
112: 41, "Mathematical Operators"
113: 42, "Miscellaneous Technical"
114: 43, "Control Pictures"
115: 44, "OCR"
116: 45, "Enclosed Alphanumerics"
117: 46, "Form and Chart Components"
118: 47, "Blocks"
119: 48, "Geometrical Shapes"
120: 49, "Miscellaneous Dingbats"
121: 50, "Zapf Dingbats"
122: 51, "Unassigned"
123: 52, "CJK Symbols"
124: 53, "Hiragana"
125: 54, "Katakana"
126: 55, "Bopomofo"
127: 56, "Hangul Elements"
128: 57, "CJK Miscellaneous"
129: 58, "Enclosed CJK Letters and Ideographs"
130: 59, "CJK Squared Words"
131: 60, "CJK Squared Abbreviations"
132: 61, "Korean Hangul Syllables"
133: 62, "Hang."
134: 63, "Unassigned"
135: 64, "Unassigned"
136: 65, "Han Ideographs"
137: 66, "Unassigned"
138: 67, "Private Use Area"
139: 68, "Han Compatibility"
140: 69, "Compatibility Zone (Unassigned)"
141: 70, "Compatibility"
142: 71, "CNS"
143: 72, "Small"
144: 73, "Basic Glyphs for Arabic Language"
145: 74, "Halfwidth and Fullwidth Variants"
146: 75, "Sp."
147: 76, "SENTINEL"
148:
149: IDS_CLASSNAME , "CharGrid"
150: IDS_MSGCAPTION, "Character Grid"
151: IDS_UCFONT , "Lucida Sans Unicode"
152: IDS_ANSIFONT , "Times New Roman"
153: IDS_LABELFONT , "Arial Narrow"
154: IDS_HEADERFONT, "Arial"
155: IDS_PRINTERR , "An Error occurred during printing"
156: IDS_NOTIMPLEM , "This doesn't work yet"
157: }
158:
159:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.