Authors: Paul Quinn <paulq@corel.ca>, Adrian Thurston <adriant@corel.ca>

- Changed LVM_SETITEMPOSITION -> LVM_SETITEMPOSITION32
          LVM_SETITEMPOSITION16 -> LVM_SETITEMPOSITION
- Added some missing structures and definitions to wingdi.h
- Added proper defines for GetCharWidthsXXX
- Added c++ protection to wingdi.h
This commit is contained in:
Alexandre Julliard 1999-03-13 17:12:07 +00:00
parent dd153f1727
commit 73cc3ba131
2 changed files with 93 additions and 14 deletions

View File

@ -2232,7 +2232,7 @@ typedef struct tagNMTVGETINFOTIPW
#define LVM_FINDITEMW (LVM_FIRST+83)
#define LVM_FINDITEM WINELIB_NAME_AW(LVM_FINDITEM)
#define LVM_GETITEMRECT (LVM_FIRST+14)
#define LVM_SETITEMPOSITION16 (LVM_FIRST+15)
#define LVM_SETITEMPOSITION (LVM_FIRST+15)
#define LVM_GETITEMPOSITION (LVM_FIRST+16)
#define LVM_GETSTRINGWIDTHA (LVM_FIRST+17)
#define LVM_GETSTRINGWIDTHW (LVM_FIRST+87)
@ -2280,7 +2280,7 @@ typedef struct tagNMTVGETINFOTIPW
#define LVM_SETITEMTEXT WINELIB_NAME_AW(LVM_SETITEMTEXT)
#define LVM_SETITEMCOUNT (LVM_FIRST+47)
#define LVM_SORTITEMS (LVM_FIRST+48)
#define LVM_SETITEMPOSITION (LVM_FIRST+49)
#define LVM_SETITEMPOSITION32 (LVM_FIRST+49)
#define LVM_GETSELECTEDCOUNT (LVM_FIRST+50)
#define LVM_GETITEMSPACING (LVM_FIRST+51)
#define LVM_GETISEARCHSTRINGA (LVM_FIRST+52)
@ -2552,7 +2552,7 @@ typedef INT (CALLBACK *PFNLVCOMPARE)(LPARAM, LPARAM, LPARAM);
#define ListView_SortItems(hwndLV,_pfnCompare,_lPrm) \
(BOOL)SendMessageA((hwndLV),LVM_SORTITEMS,(WPARAM)(LPARAM)_lPrm,(LPARAM)(PFNLVCOMPARE)_pfnCompare)
#define ListView_SetItemPosition(hwndLV, i, x, y) \
(BOOL)SendMessageA((hwndLV),LVM_SETITEMPOSITION16,(WPARAM)(INT)(i),MAKELPARAM((x),(y)))
(BOOL)SendMessageA((hwndLV),LVM_SETITEMPOSITION,(WPARAM)(INT)(i),MAKELPARAM((x),(y)))
#define ListView_GetSelectedCount(hwndLV) \
(UINT)SendMessageA((hwndLV),LVM_GETSELECTEDCOUNT,0,0L)

View File

@ -3,6 +3,10 @@
#include "wintypes.h"
#ifdef __cplusplus
extern "C" {
#endif
#pragma pack(1)
typedef struct _ABCFLOAT {
@ -44,7 +48,7 @@ typedef struct
BOOL fRestore;
BOOL fIncUpdate;
BYTE rgbReserved[32];
} PAINTSTRUCT, *LPPAINTSTRUCT;
} PAINTSTRUCT, *PPAINTSTRUCT, *LPPAINTSTRUCT;
@ -93,6 +97,56 @@ typedef struct tagCOLORADJUSTMENT
SHORT caRedGreenTint;
} COLORADJUSTMENT, *PCOLORADJUSTMENT, *LPCOLORADJUSTMENT;
typedef LONG FXPT16DOT16, *LPFXPT16DOT16;
typedef LONG FXPT2DOT30, *LPFXPT2DOT30;
typedef LONG LCSCSTYPE;
typedef LONG LCSGAMUTMATCH;
typedef struct tagCIEXYZ
{
FXPT2DOT30 ciexyzX;
FXPT2DOT30 ciexyzY;
FXPT2DOT30 ciexyzZ;
} CIEXYZ, *LPCIEXYZ;
typedef struct tagCIEXYZTRIPLE
{
CIEXYZ ciexyzRed;
CIEXYZ ciexyzGreen;
CIEXYZ ciexyzBlue;
} CIEXYZTRIPLE, *LPCIEXYZTRIPLE;
typedef struct tagLOGCOLORSPACEA
{
DWORD lcsSignature;
DWORD lcsVersion;
DWORD lcsSize;
LCSCSTYPE lcsCSType;
LCSGAMUTMATCH lcsIntent;
CIEXYZTRIPLE lcsEndpoints;
DWORD lcsGammaRed;
DWORD lcsGammaGreen;
DWORD lcsGammaBlue;
CHAR lcsFilename[_MAX_PATH];
} LOGCOLORSPACEA, *LPLOGCOLORSPACEA;
typedef struct tagLOGCOLORSPACEW
{
DWORD lcsSignature;
DWORD lcsVersion;
DWORD lcsSize;
LCSCSTYPE lcsCSType;
LCSGAMUTMATCH lcsIntent;
CIEXYZTRIPLE lcsEndpoints;
DWORD lcsGammaRed;
DWORD lcsGammaGreen;
DWORD lcsGammaBlue;
WCHAR lcsFilename[_MAX_PATH];
} LOGCOLORSPACEW, *LPLOGCOLORSPACEW;
DECL_WINELIB_TYPE_AW(LPLOGCOLORSPACE)
DECL_WINELIB_TYPE_AW(LOGCOLORSPACE)
#define DC_FIELDS 1
#define DC_PAPERS 2
#define DC_PAPERSIZE 3
@ -111,6 +165,12 @@ typedef struct tagCOLORADJUSTMENT
#define DC_PAPERNAMES 16
#define DC_ORIENTATION 17
#define DC_COPIES 18
#define DC_BINADJUST 19
#define DC_EMF_COMPLIANT 20
#define DC_DATATYPE_PRODUCED 21
#define DC_COLLATE 22
#define DC_MANUFACTURER 23
#define DC_MODEL 24
/* Flag returned from Escape QUERYDIBSUPPORT */
#define QDI_SETDIBITS 1
@ -257,7 +317,7 @@ typedef struct tagCOLORADJUSTMENT
/* Colors */
typedef DWORD COLORREF;
typedef DWORD COLORREF, *LPCOLORREF;
#define RGB(r,g,b) ((COLORREF)((r) | ((g) << 8) | ((b) << 16)))
#define PALETTERGB(r,g,b) (0x02000000 | RGB(r,g,b))
@ -432,7 +492,7 @@ typedef struct
BYTE lfQuality;
BYTE lfPitchAndFamily;
CHAR lfFaceName[LF_FACESIZE];
} LOGFONTA, *LPLOGFONTA;
} LOGFONTA, *PLOGFONTA, *LPLOGFONTA;
typedef struct
{
@ -450,9 +510,10 @@ typedef struct
BYTE lfQuality;
BYTE lfPitchAndFamily;
WCHAR lfFaceName[LF_FACESIZE];
} LOGFONTW, *LPLOGFONTW;
} LOGFONTW, *PLOGFONTW, *LPLOGFONTW;
DECL_WINELIB_TYPE_AW(LOGFONT)
DECL_WINELIB_TYPE_AW(PLOGFONT)
DECL_WINELIB_TYPE_AW(LPLOGFONT)
typedef struct
@ -1150,7 +1211,7 @@ typedef struct
typedef struct tagPALETTEENTRY
{
BYTE peRed, peGreen, peBlue, peFlags;
} PALETTEENTRY, *LPPALETTEENTRY;
} PALETTEENTRY, *PPALETTEENTRY, *LPPALETTEENTRY;
/* Logical palette entry flags */
#define PC_RESERVED 0x01
@ -1162,7 +1223,7 @@ typedef struct
WORD palVersion;
WORD palNumEntries;
PALETTEENTRY palPalEntry[1] WINE_PACKED;
} LOGPALETTE, *LPLOGPALETTE;
} LOGPALETTE, *PLOGPALETTE, *LPLOGPALETTE;
/* Pens */
@ -1484,8 +1545,18 @@ typedef struct tagEXTLOGPEN
/* Device-independent bitmaps */
typedef struct { BYTE rgbBlue, rgbGreen, rgbRed, rgbReserved; } RGBQUAD;
typedef struct { BYTE rgbtBlue, rgbtGreen, rgbtRed; } RGBTRIPLE;
typedef struct {
BYTE rgbBlue;
BYTE rgbGreen;
BYTE rgbRed;
BYTE rgbReserved;
} RGBQUAD, *LPRGBQUAD;
typedef struct {
BYTE rgbtBlue;
BYTE rgbtGreen;
BYTE rgbtRed;
} RGBTRIPLE;
typedef struct
{
@ -1509,7 +1580,7 @@ typedef struct
LONG biYPelsPerMeter;
DWORD biClrUsed;
DWORD biClrImportant;
} BITMAPINFOHEADER, *LPBITMAPINFOHEADER;
} BITMAPINFOHEADER, *PBITMAPINFOHEADER, *LPBITMAPINFOHEADER;
/* biCompression */
#define BI_RGB 0
@ -1921,7 +1992,7 @@ typedef struct
DWORD dmDitherType;
DWORD dmReserved1;
DWORD dmReserved2;
} DEVMODEA, *LPDEVMODEA;
} DEVMODEA, *PDEVMODEA, *LPDEVMODEA;
typedef struct
{
@ -1957,9 +2028,10 @@ typedef struct
DWORD dmDitherType;
DWORD dmReserved1;
DWORD dmReserved2;
} DEVMODEW, *LPDEVMODEW;
} DEVMODEW, *PDEVMODEW, *LPDEVMODEW;
DECL_WINELIB_TYPE_AW(DEVMODE)
DECL_WINELIB_TYPE_AW(PDEVMODE)
DECL_WINELIB_TYPE_AW(LPDEVMODE)
typedef struct
@ -2377,6 +2449,9 @@ DWORD WINAPI GetCharacterPlacementW(HDC,LPCWSTR,INT,INT,GCP_RESULTSW*,DWOR
BOOL16 WINAPI GetCharWidth16(HDC16,UINT16,UINT16,LPINT16);
BOOL WINAPI GetCharWidth32A(HDC,UINT,UINT,LPINT);
BOOL WINAPI GetCharWidth32W(HDC,UINT,UINT,LPINT);
#define GetCharWidthA GetCharWidth32A
#define GetCharWidthW GetCharWidth32W
#define GetCharWidth32 WINELIB_NAME_AW(GetCharWidth32)
#define GetCharWidth WINELIB_NAME_AW(GetCharWidth)
INT16 WINAPI GetClipBox16(HDC16,LPRECT16);
INT WINAPI GetClipBox(HDC,LPRECT);
@ -2666,4 +2741,8 @@ BOOL WINAPI UpdateColors(HDC);
BOOL16 WINAPI WidenPath16(HDC16);
BOOL WINAPI WidenPath(HDC);
#ifdef __cplusplus
}
#endif
#endif /* __WINE_WINGDI_H */