* Sync with recent trunk (r52637).
[reactos.git] / base / applications / mspaint / globalvar.h
1 /*
2 * PROJECT: PAINT for ReactOS
3 * LICENSE: LGPL
4 * FILE: base/applications/paint/globalvar.h
5 * PURPOSE: Declaring global variables for later initialization
6 * PROGRAMMERS: Benedikt Freisen
7 */
8
9 /* INCLUDES *********************************************************/
10
11 #include <windows.h>
12 #include "definitions.h"
13
14 /* VARIABLES declared in main.c *************************************/
15
16 extern HDC hDrawingDC;
17 extern HDC hSelDC;
18 extern int *bmAddress;
19 extern BITMAPINFO bitmapinfo;
20 extern int imgXRes;
21 extern int imgYRes;
22
23 extern HBITMAP hBms[HISTORYSIZE];
24 extern int currInd;
25 extern int undoSteps;
26 extern int redoSteps;
27 extern BOOL imageSaved;
28
29 extern LONG startX;
30 extern LONG startY;
31 extern LONG lastX;
32 extern LONG lastY;
33 extern int lineWidth;
34 extern int shapeStyle;
35 extern int brushStyle;
36 extern int activeTool;
37 extern int airBrushWidth;
38 extern int rubberRadius;
39 extern int transpBg;
40 extern int zoom;
41 extern int rectSel_src[4];
42 extern int rectSel_dest[4];
43 extern HWND hSelection;
44 extern HWND hImageArea;
45 extern HBITMAP hSelBm;
46 extern HBITMAP hSelMask;
47
48 extern int palColors[28];
49
50 extern int fgColor;
51 extern int bgColor;
52
53 extern HWND hStatusBar;
54 extern HWND hScrollbox;
55 extern HWND hMainWnd;
56 extern HWND hPalWin;
57 extern HWND hToolBoxContainer;
58 extern HWND hToolSettings;
59 extern HWND hTrackbarZoom;
60 extern CHOOSECOLOR choosecolor;
61 extern OPENFILENAME ofn;
62 extern OPENFILENAME sfn;
63 extern HICON hNontranspIcon;
64 extern HICON hTranspIcon;
65
66 extern HCURSOR hCurFill;
67 extern HCURSOR hCurColor;
68 extern HCURSOR hCurZoom;
69 extern HCURSOR hCurPen;
70 extern HCURSOR hCurAirbrush;
71
72 extern HWND hScrlClient;
73
74 extern HWND hToolBtn[16];
75
76 extern HINSTANCE hProgInstance;
77
78 extern TCHAR filename[256];
79 extern TCHAR filepathname[1000];
80 extern BOOL isAFile;
81 extern int fileSize;
82 extern int fileHPPM;
83 extern int fileVPPM;
84 extern SYSTEMTIME fileTime;
85
86 extern BOOL showGrid;
87 extern BOOL showMiniature;
88
89 extern HWND hwndMiniature;
90
91 extern HWND hSizeboxLeftTop;
92 extern HWND hSizeboxCenterTop;
93 extern HWND hSizeboxRightTop;
94 extern HWND hSizeboxLeftCenter;
95 extern HWND hSizeboxRightCenter;
96 extern HWND hSizeboxLeftBottom;
97 extern HWND hSizeboxCenterBottom;
98 extern HWND hSizeboxRightBottom;
99
100 /* VARIABLES declared in mouse.c ************************************/
101
102 extern POINT pointStack[256];
103 extern short pointSP;
104 extern POINT *ptStack;
105 extern int ptSP;