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