rnd-20090623-1-src
[rocksndiamonds.git] / src / game_sp / Capture.h
1 // ----------------------------------------------------------------------------
2 // Capture.h
3 // ----------------------------------------------------------------------------
4
5 #ifndef CAPTURE_H
6 #define CAPTURE_H
7
8 #include "vb_types.h"
9 #include "vb_defs.h"
10 #include "vb_vars.h"
11 #include "vb_lib.h"
12
13 #include "global.h"
14
15 #ifndef HAS_PALETTEENTRY
16 typedef struct
17 {
18   byte peRed;
19   byte peGreen;
20   byte peBlue;
21   byte peFlags;
22 } PALETTEENTRY;
23 #define HAS_PALETTEENTRY
24 #endif
25
26 #ifndef HAS_LOGPALETTE
27 typedef struct
28 {
29   int palVersion;
30   int palNumEntries;
31   PALETTEENTRY palPalEntry[255];  // Enough for 256 colors.
32 } LOGPALETTE;
33 #define HAS_LOGPALETTE
34 #endif
35
36 #ifndef HAS_GUID
37 typedef struct
38 {
39   long Data1;
40   int Data2;
41   int Data3;
42   byte Data4[7];
43 } GUID;
44 #define HAS_GUID
45 #endif
46
47 #if Win32
48
49 #ifndef HAS_RECT
50 typedef struct
51 {
52   long left;
53   long top;
54   long right;
55   long bottom;
56 } RECT;
57 #define HAS_RECT
58 #endif
59
60 #ifndef HAS_PicBmp
61 typedef struct
62 {
63   long Size;
64   long Type;
65   long hBmp;
66   long hPal;
67   long Reserved;
68 } PicBmp;
69 #define HAS_PicBmp
70 #endif
71
72 #elif Win16
73
74 #ifndef HAS_RECT
75 typedef struct
76 {
77   int left;
78   int top;
79   int right;
80   int bottom;
81 } RECT;
82 #define HAS_RECT
83 #endif
84
85 #ifndef HAS_PicBmp
86 typedef struct
87 {
88   int Size;
89   int Type;
90   int hBmp;
91   int hPal;
92   int Reserved;
93 } PicBmp;
94 #define HAS_PicBmp
95 #endif
96
97 #endif
98
99 #if Win32
100
101
102
103 #elif Win16
104
105
106
107 #endif
108
109 #if Win32
110
111
112
113 #elif Win16
114
115
116
117 #endif
118
119 #if Win32
120
121
122
123 #elif Win16
124
125
126
127 #endif
128
129 #if Win32
130
131
132
133 #elif Win16
134
135
136
137 #endif
138
139 extern Picture CaptureActiveWindow();
140 extern Picture CaptureClient(Form frmSrc);
141 extern Picture CaptureForm(Form frmSrc);
142 extern Picture CaptureScreen();
143 extern Picture CaptureWindow(int hWndSrc, boolean Client, int LeftSrc, int TopSrc, long WidthSrc, long HeightSrc);
144 extern Picture CreateBitmapPicture(int hBmp, int hPal);
145 extern void PrintPictureToFitPage(Printer Prn, Picture pic);
146
147 #endif /* CAPTURE_H */