|
|
1.1.1.3 ! 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: 1.1 root 13: #include <Windows.H> 14: #include "FontView.H" 15: 16: FontView ICON FontView.ICO 1.1.1.2 root 17: FontView BITMAP FontView.BMP 18: ZOOM ICON ZOOM.ICO 1.1 root 19: 20: #include "FontView.dlg" 21: 22: FontView MENU 23: BEGIN 1.1.1.2 root 24: POPUP "&File" 25: BEGIN 26: MENUITEM "&New", IDM_NEW, GRAYED 27: MENUITEM "&Open...", IDM_OPEN, GRAYED 28: MENUITEM "&Close", IDM_CLOSE, GRAYED 29: MENUITEM "&Save\tF3", IDM_SAVE, GRAYED 30: MENUITEM "Save &As...", IDM_SAVEAS, GRAYED 31: MENUITEM SEPARATOR 32: MENUITEM "&Print...", IDM_PRINT, GRAYED 33: MENUITEM "P&rint Setup...", IDM_PRINTSET, GRAYED 34: MENUITEM SEPARATOR 35: MENUITEM "E&xit", IDM_EXIT 36: END 37: 38: POPUP "&Edit" 39: BEGIN 40: MENUITEM "&Undo", IDM_UNDO, GRAYED 41: MENUITEM SEPARATOR 42: MENUITEM "Cu&t", IDM_CUT, GRAYED 43: MENUITEM "&Copy", IDM_COPY, GRAYED 44: MENUITEM "&Paste", IDM_PASTE, GRAYED 45: MENUITEM "&Delete", IDM_DELETE, GRAYED 46: MENUITEM SEPARATOR 47: MENUITEM "&Find..." IDM_FIND, GRAYED 48: MENUITEM "&Replace..." IDM_REPLACE, GRAYED 49: END 50: 51: POPUP "&View" 52: BEGIN 53: MENUITEM "Character Set" IDM_CHARSET 54: MENUITEM "Glyph Metrics" IDM_GLYPH 55: MENUITEM SEPARATOR 56: MENUITEM "&ToolBar" IDM_TOOLBAR, GRAYED 57: MENUITEM "&Status" IDM_STATUSBAR, GRAYED 58: END 59: 60: POPUP "&Metrics" 61: BEGIN 62: MENUITEM "&CreateFont...", IDM_CREATEFONT 63: MENUITEM "&TextMetrics...", IDM_TEXTMETRIC 64: MENUITEM "&EnumFonts...", IDM_ENUMFONTS 65: MENUITEM "&OutlineTextMetrics...", IDM_OUTLINEMETRICS, GRAYED 66: END 67: 68: 69: POPUP "&Help" 70: BEGIN 71: MENUITEM "&Contents", IDM_HELP_CONTENTS 72: MENUITEM "&Index", IDM_HELP_INDEX 73: MENUITEM "&Overview", IDM_HELP_OVERVIEW 74: MENUITEM "&Glossary", IDM_HELP_GLOSSARY 75: MENUITEM "&Tutorial", IDM_HELP_TUTORIAL 76: MENUITEM "&Demo", IDM_HELP_DEMO 77: MENUITEM "&Help On Help", IDM_HELP_HELP 78: MENUITEM SEPARATOR 79: MENUITEM "&About...\tAlt+?", IDM_ABOUT 80: END 1.1 root 81: END 82: 83: 84: 85: FontView ACCELERATORS 86: BEGIN 1.1.1.2 root 87: "?", IDM_ABOUT, ALT 88: "/", IDM_ABOUT, ALT 1.1 root 89: END 90: 91: STRINGTABLE 92: BEGIN 1.1.1.2 root 93: IDM_SYSMENU "Move, size or close application window" 94: IDM_FILE "Create, open, save or print files" 95: IDM_NEW "Create a new file" 96: IDM_OPEN "Open and existing file" 97: IDM_CLOSE "Close the active file/window" 98: IDM_SAVE "Save the active file" 99: IDM_SAVEAS "Save the active file with a new name" 100: IDM_PRINT "Print contents of active window" 101: IDM_PRINTSET "Select desired printer configuration" 102: IDM_EXIT "Exit this application" 103: 104: IDM_EDIT "Undo, cut, copy, paste, clear" 105: IDM_UNDO "Undo the last edit operation" 106: IDM_CUT "Move the selected object to the clipboard" 107: IDM_COPY "Copy the selected object to the clipbpard" 108: IDM_PASTE "Paste the contents of the clipboard into the current location" 109: IDM_DELETE "Delete the selected object without altering the clipboard" 110: IDM_FIND "Search for text pattern" 111: IDM_REPLACE "Search for and replace text pattern" 112: 113: IDM_VIEW "Control View, ToolBar and Status Bar" 114: IDM_CHARSET "View Entire Character Set" 115: IDM_GLYPH "View A Single Character" 116: IDM_TOOLBAR "Toggle visibility of toolbar" 117: IDM_STATUSBAR "Toggle visibility of statusbar" 118: 119: IDM_DIALOG "Display specific information about the current font" 120: 121: IDM_CREATEFONT "The currently used parameters for 'CreateFont'" 122: IDM_TEXTMETRIC "The TEXTMETRICS values for the current font" 123: IDM_ENUMFONTS "Enumerate all available fonts on the system" 124: IDM_OUTLINEMETRICS "The OUTLINETEXTMETRICS for the current font (if TrueType)" 125: 126: IDM_HELP "Get help on using FontView" 127: 128: IDM_HELP_CONTENTS "Open the Help table of contents for FontView" 129: IDM_HELP_INDEX "Open the Help index for FontView" 130: IDM_HELP_OVERVIEW "Open the Help overview for FontView" 131: IDM_HELP_GLOSSARY "Open the Help Glossary for FontView" 132: IDM_HELP_TUTORIAL "Open the Help tutorial for FontView" 133: IDM_HELP_DEMO "Open the Help demo for FontView" 134: IDM_HELP_HELP "Get Help on how to use Help" 135: IDM_ABOUT "And now, a message from your sponser..." 136: 137: ID_TOOLBAR "This is the toolbar" 138: ID_CREATEPARAM "Select 'CreateFont' Parameter to set" 139: ID_CREATEVALUE "Select desired value for 'CreateFont' Parameter" 1.1.1.3 ! root 140: ID_ZOOM "Switch from 'Glyph' to 'CharSet' mode" 1.1.1.2 root 141: 142: ID_STATUSBAR "This is the status bar" 143: ID_MENUFIELD "This field displays various informational text, like this one" 144: ID_TIMEFIELD "This is the current time" 1.1 root 145: 146: // Not all of these will actually be used: 1.1.1.2 root 147: SC_SIZE "Change window size" 148: SC_MOVE "Change window position" 149: SC_MINIMIZE "Reduce window to icon" 150: SC_MAXIMIZE "Enlage window to full size" 151: SC_NEXTWINDOW "[Switch to next window]" 152: SC_PREVWINDOW "[Switch to previous window]" 153: SC_CLOSE "Close window and quit application" 154: SC_VSCROLL "[Scroll window vertically]" 155: SC_HSCROLL "[Scroll window horizontally]" 156: SC_MOUSEMENU "[Mouse was used to select menu item]" 157: SC_KEYMENU "[Keyboard was used to select menu item]" 158: SC_ARRANGE "[Arrange window]" 159: SC_RESTORE "Restore window to normal size" 160: SC_TASKLIST "Activate Task List" 161: 1.1.1.3 ! root 162: 1001 "Just a simple combobox" 1.1 root 163: END
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.