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