|
|
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: ! 13: #ifndef TEXT ! 14: // this is non-Unicode Win16 build ! 15: #define CHAR char ! 16: #define UCHAR unsigned char ! 17: #define TCHAR CHAR ! 18: #define LPTSTR LPSTR ! 19: #define TEXT(x) x ! 20: #define COORD int ! 21: ! 22: #else ! 23: #define COORD LONG ! 24: #define HINSTANCE HMODULE ! 25: #endif ! 26: ! 27: // Menu item IDs ! 28: #define IDM_PRINT 1 ! 29: #define IDM_EXIT 2 ! 30: #define IDM_NEXTPAGE 3 ! 31: #define IDM_PREVPAGE 4 ! 32: #define IDM_NEXTSECTION 5 ! 33: #define IDM_PREVSECTION 6 ! 34: #define IDM_ZOOMIN 7 ! 35: #define IDM_ZOOMOUT 8 ! 36: #define IDM_FONT 9 ! 37: #define IDM_DECIMAL 10 ! 38: #define IDM_HELP 11 ! 39: #define IDM_ABOUT 12 ! 40: ! 41: #define IDM_FIRSTPAGE 200 // pseudo menu items ! 42: #define IDM_LASTPAGE 201 ! 43: ! 44: // String Table IDs ! 45: #define IDS_CLASSNAME 1024 ! 46: #define IDS_MSGCAPTION 1025 ! 47: #define IDS_UCFONT 1026 ! 48: #define IDS_ANSIFONT 1027 ! 49: #define IDS_LABELFONT 1028 ! 50: #define IDS_HEADERFONT 1029 ! 51: #define IDS_PRINTERR 1030 ! 52: #define IDS_NOTIMPLEM 1031 ! 53: ! 54: // Manifest Constants ! 55: #define DONE TRUE ! 56: #define INCH1 1440 ! 57: #define INCH2 720 // half ! 58: #define INCH4 360 // quarter ! 59: #define INCH8 180 // eigth ! 60: #define INCH10 144 // tenth ! 61: ! 62: // Paper Size: Redefine for non-US ! 63: #define PAGEWIDTH (8*INCH1+INCH2) ! 64: #define PAGEHEIGHT (11*INCH1) ! 65: ! 66: ! 67: ! 68:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.