1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 /* nicht geschuetz, muss als gegenstueck zu prewin.h includet werden */ 25 26 #ifdef WNT 27 #ifdef __cplusplus 28 } 29 #endif 30 #endif 31 32 #undef Region 33 #undef PolyPolygon 34 #undef Polygon 35 #undef Rectangle 36 #undef BYTE 37 #undef BOOL 38 #undef DELETE 39 40 #ifndef VCL_NEED_BASETSD 41 #undef INT64 42 #undef UINT64 43 #undef INT32 44 #undef UINT32 45 #endif 46 #undef Folder 47 #undef GradientStyle_RECT 48 49 /* Hilfe-Ids umbenennen */ 50 #define WIN_HELP_INDEX 0x0003 51 #define WIN_HELP_HELPONHELP 0x0004 52 #undef HELP_INDEX 53 #undef HELP_HELPONHELP 54 55 #define WIN_MOUSE_MOVED 0x0001 56 #undef MOUSE_MOVED 57 58 #define WIN_WB_LEFT 0 59 #define WIN_WB_RIGHT 1 60 #undef WB_LEFT 61 #undef WB_RIGHT 62 63 #ifdef GetObject 64 #undef GetObject 65 #ifdef UNICODE 66 #define WIN_GetObject GetObjectW 67 #else 68 #define WIN_GetObject GetObjectA 69 #endif 70 #else 71 #define WIN_GetObject GetObject 72 #endif 73 74 #ifdef SetPrinter 75 #undef SetPrinter 76 #ifdef UNICODE 77 #define WIN_SetPrinter SetPrinterW 78 #else 79 #define WIN_SetPrinter SetPrinterA 80 #endif 81 #else 82 #define WIN_SetPrinter SetPrinter 83 #endif 84 85 #ifdef GetPrinter 86 #undef GetPrinter 87 #ifdef UNICODE 88 #define WIN_GetPrinter GetPrinterW 89 #else 90 #define WIN_GetPrinter GetPrinterA 91 #endif 92 #else 93 #define WIN_GetPrinter GetPrinter 94 #endif 95 96 #ifdef DrawText 97 #undef DrawText 98 #ifdef UNICODE 99 #define WIN_DrawText DrawTextW 100 #else 101 #define WIN_DrawText DrawTextA 102 #endif 103 #else 104 #define WIN_DrawText DrawText 105 #endif 106 107 #ifdef mciSetCommand 108 #undef mciSetCommand 109 #ifdef UNICODE 110 #define WIN_mciSetCommand mciSetCommandW 111 #else 112 #define WIN_mciSetCommand mciSetCommandA 113 #endif 114 #else 115 #define mciSetCommand mciSetCommand 116 #endif 117 118 #ifdef SetPort 119 #undef SetPort 120 #ifdef UNICODE 121 #define WIN_SetPort SetPortW 122 #else 123 #define WIN_SetPort SetPortA 124 #endif 125 #else 126 #define WIN_SetPort SetPort 127 #endif 128 129 #ifdef CopyFile 130 #undef CopyFile 131 #ifdef UNICODE 132 #define WIN_CopyFile CopyFileW 133 #else 134 #define WIN_CopyFile CopyFileA 135 #endif 136 #else 137 #define WIN_CopyFile CopyFile 138 #endif 139 140 141 #ifdef GetUserName 142 #undef GetUserName 143 #ifdef UNICODE 144 #define WIN_GetUserName GetUserNameW 145 #else 146 #define WIN_GetUserName GetUserNameA 147 #endif 148 #else 149 #define WIN_GetUserName GetUserName 150 #endif 151 152 #ifdef GetClassName 153 #undef GetClassName 154 #ifdef UNICODE 155 #define WIN_GetClassName GetClassNameW 156 #else 157 #define WIN_GetClassName GetClassNameA 158 #endif 159 #else 160 #define WIN_GetClassName GetClassName 161 #endif 162 163 #ifdef GetCharWidth 164 #undef GetCharWidth 165 #ifdef UNICODE 166 #define WIN_GetCharWidth GetCharWidthW 167 #else 168 #define WIN_GetCharWidth GetCharWidthA 169 #endif 170 #else 171 #define WIN_GetCharWidth GetCharWidth 172 #endif 173 174 #ifdef GetMetaFile 175 #undef GetMetaFile 176 #ifdef UNICODE 177 #define WIN_GetMetaFile GetMetaFileW 178 #else 179 #define WIN_GetMetaFile GetMetaFileA 180 #endif 181 #else 182 #define WIN_GetMetaFile GetMetaFile 183 #endif 184 185 #ifdef GetNumberFormat 186 #undef GetNumberFormat 187 #ifdef UNICODE 188 #define WIN_GetNumberFormat GetNumberFormatW 189 #else 190 #define WIN_GetNumberFormat GetNumberFormatA 191 #endif 192 #else 193 #define WIN_GetNumberFormat GetNumberFormat 194 #endif 195 196 #ifdef GetGlyphOutline 197 #undef GetGlyphOutline 198 #ifdef UNICODE 199 #define WIN_GetGlyphOutline GetGlyphOutlineW 200 #else 201 #define WIN_GetGlyphOutline GetGlyphOutlineA 202 #endif 203 #else 204 #define WIN_GetGlyphOutline GetGlyphOutline 205 #endif 206 207 #ifdef GetKerningPairs 208 #undef GetKerningPairs 209 #ifdef UNICODE 210 #define WIN_GetKerningPairs GetKerningPairsW 211 #else 212 #define WIN_GetKerningPairs GetKerningPairsA 213 #endif 214 #else 215 #define WIN_GetKerningPairs GetKerningPairs 216 #endif 217 218 #ifdef FindWindow 219 #undef FindWindow 220 #ifdef UNICODE 221 #define WIN_FindWindow FindWindowW 222 #else 223 #define WIN_FindWindow FindWindowA 224 #endif 225 #else 226 #define WIN_FindWindow FindWindow 227 #endif 228 229 // keine Yield-Definition 230 #undef Yield 231 232 /* new StretchBlt() Modes (simpler names) */ 233 #ifndef STRETCH_ANDSCANS 234 #define STRETCH_ANDSCANS 1 235 #endif 236 #ifndef STRETCH_ORSCANS 237 #define STRETCH_ORSCANS 2 238 #endif 239 #ifndef STRETCH_DELETESCANS 240 #define STRETCH_DELETESCANS 3 241 #endif 242 243 #ifdef WNT 244 extern "C" 245 { 246 BOOL WINAPI WIN_Rectangle( HDC hDC, int X1, int Y1, int X2, int Y2 ); 247 BOOL WINAPI WIN_Polygon( HDC hDC, CONST POINT * ppt, int ncnt ); 248 BOOL WINAPI WIN_PolyPolygon( HDC hDC, CONST POINT * ppt, LPINT npcnt, int ncnt ); 249 } 250 #endif 251 252 // svwin.h nicht mehr includen 253 #define _SVWIN_H 254