|
|
1.1 root 1: /******************************Module*Header*******************************\
2: * Module Name: julia.h
3: *
4: * Header file for Julia.c
5: *
6: * Created: 24-Oct-1991 18:15:12
7: * Author: Petrus Wong
8: *
9: * Copyright (c) 1990 Microsoft Corporation
10: *
11: * Contains the #define values for the menu items' id and handy globals
12: *
13: * Dependencies:
14: * none
15: *
16: \**************************************************************************/
17:
18: #include <string.h>
19: #include <winspool.h>
20: #include <drivinit.h>
21: #include "jtypes.h"
22: #include "bndscan.h"
23: #include "dibmp.h"
24: #include "printer.h"
25:
26: //
27: // A large number. Used in all the fix-point versions of the fractal
28: // generation algorithms.
29: //
30: #define FIRST_PIXEL 429496796
31:
32: //
33: // menu item IDs
34: //
35: #define MM_ABOUT 8000
36: #define MM_JULIA 8001
37: #define MM_MANDEL 8002
38: #define MM_SAVE 8003
39: #define MM_SAVE_MONO 8004
40: #define MM_LOAD 8005
41:
42: #define MM_CREATE_JULIA_THREAD 7001
43: #define MM_SET_XFORM_ATTR 7002
44: #define MM_CREATE_MANDEL_THREAD 7003
45:
46: #define MM_FLOAT 7009
47: #define MM_FIX 7010
48:
49: #define MM_ITERATION_TEN 7011
50: #define MM_ITERATION_TWENTY 7012
51: #define MM_ITERATION_THIRTY 7013
52: #define MM_ITERATION_FIFTY 7014
53: #define MM_ITERATION_DOUBLE 7015
54: #define MM_STEP_ONE 7016
55: #define MM_STEP_TWO 7017
56: #define MM_STEP_THREE 7018
57: #define MM_STRETCHBLT 7019
58: #define MM_BITBLT 7020
59: #define MM_BLACKONWHITE 7021
60: #define MM_COLORONCOLOR 7022
61: #define MM_WHITEONBLACK 7023
62: #define MM_HALFTONE 7024
63: #define MM_OPT_4 7025
64: #define MM_CLIP 7026
65: #define MM_RM_CLIP 7027
66: #define MM_ERASE 7028
67: #define MM_SETDIB2DEVICE 7029
68:
69: #define IDM_CASCADE 30
70: #define IDM_TILE 31
71: #define IDM_ARRANGE 32
72: #define IDM_CLOSEALL 33
73:
74: //
75: // Resource IDs
76: //
77: #define ACCEL_ID 100
78: #define APPICON 1001
79: #define PAINTCURSOR 1002
80:
81: //
82: // Handy globals
83: //
84: HPEN hpnRed;
85: HPEN hpnBlack;
86: HPEN hpnGreen;
87: PVOID *gprghPen;
88: INT giPen = 0;
89:
90: HANDLE ghModule;
91: HWND ghwndMain = NULL;
92: HWND ghwndClient = NULL;
93: HANDLE ghAccel;
94:
95: HMENU hMenu, hChildMenu;
96: HMENU hSubMenuOne, hSubMenuThree;
97: HMENU hPrinterMenu;
98:
99: CHAR gszFile[20];
100: CHAR gszMapName[20];
101: char gtext[256];
102:
103: BOOL gFloat = TRUE;
104: LONG gStep = 2;
105: LONG gIteration = 30;
106: BOOL gbStretch = TRUE;
107: INT giStretchMode = HALFTONE;
108: INT giDmOrient = DMORIENT_PORTRAIT;
109: INT giNPrinters = 0;
110:
111: double xFrom, xTo, yFrom, yTo, c1, c2;
112: LONG lxFrom, lxTo, lyFrom, lyTo, lc1, lc2;
113:
114: extern PPRINTER_INFO_1 gpPrinters;
115: extern PSZ *gpszPrinterNames;
116: extern PSZ *gpszDeviceNames;
117:
118: extern BOOL bBoundaryScanFix(PINFO);
119: extern BOOL SaveBitmapFile(HDC, HBITMAP, PSTR);
120: extern BOOL LoadBitmapFile(HDC, PINFO, PSTR);
121: extern BOOL bChangeDIBColor(HDC, PINFO, INT);
122: extern BOOL bInitPrinter(HWND);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.