1998-03-15 20:29:56 +00:00
|
|
|
/*
|
|
|
|
* ImageList definitions
|
|
|
|
*
|
|
|
|
* Copyright 1998 Eric Kohl
|
2002-03-09 23:29:33 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1998-03-15 20:29:56 +00:00
|
|
|
*/
|
2002-05-31 23:06:46 +00:00
|
|
|
|
1998-03-15 20:29:56 +00:00
|
|
|
#ifndef __WINE_IMAGELIST_H
|
|
|
|
#define __WINE_IMAGELIST_H
|
1999-01-01 18:57:33 +00:00
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2000-03-24 21:13:57 +00:00
|
|
|
#include "windef.h"
|
2003-09-05 23:08:26 +00:00
|
|
|
#include "winbase.h"
|
1999-01-01 18:57:33 +00:00
|
|
|
#include "wingdi.h"
|
1999-02-17 13:51:06 +00:00
|
|
|
|
2000-01-29 21:00:25 +00:00
|
|
|
/* the ones with offsets at the end are the same as in Windows */
|
1998-03-15 20:29:56 +00:00
|
|
|
struct _IMAGELIST
|
|
|
|
{
|
2003-05-13 03:36:27 +00:00
|
|
|
DWORD magic; /* 00: 'SAMX' */
|
|
|
|
INT cCurImage; /* 04: ImageCount */
|
|
|
|
INT cMaxImage; /* 08: maximages */
|
|
|
|
INT cGrow; /* 0c: cGrow */
|
|
|
|
INT cx; /* 10: cx */
|
|
|
|
INT cy; /* 14: cy */
|
|
|
|
DWORD x4;
|
|
|
|
UINT flags; /* 1c: flags */
|
|
|
|
COLORREF clrFg; /* 20: foreground color */
|
2008-01-23 22:05:21 +00:00
|
|
|
COLORREF clrBk; /* 24: background color */
|
2000-01-29 21:00:25 +00:00
|
|
|
|
|
|
|
|
2003-05-13 03:36:27 +00:00
|
|
|
HBITMAP hbmImage; /* 30: images Bitmap */
|
|
|
|
HBITMAP hbmMask; /* 34: masks Bitmap */
|
|
|
|
HDC hdcImage; /* 38: images MemDC */
|
|
|
|
HDC hdcMask; /* 3C: masks MemDC */
|
|
|
|
INT nOvlIdx[15]; /* 40: overlay images index */
|
|
|
|
|
2000-01-29 21:00:25 +00:00
|
|
|
/* not yet found out */
|
1999-02-26 11:11:13 +00:00
|
|
|
HBRUSH hbrBlend25;
|
|
|
|
HBRUSH hbrBlend50;
|
|
|
|
INT cInitial;
|
|
|
|
UINT uBitsPixel;
|
1998-03-15 20:29:56 +00:00
|
|
|
};
|
1999-11-23 23:40:01 +00:00
|
|
|
|
2003-01-02 17:51:13 +00:00
|
|
|
#define IMAGELIST_MAGIC 0x53414D58
|
|
|
|
|
2000-01-29 21:00:25 +00:00
|
|
|
/* Header used by ImageList_Read() and ImageList_Write() */
|
2007-04-21 09:16:04 +00:00
|
|
|
#include "pshpack2.h"
|
1999-11-23 23:40:01 +00:00
|
|
|
typedef struct _ILHEAD
|
|
|
|
{
|
2000-01-29 21:00:25 +00:00
|
|
|
USHORT usMagic;
|
|
|
|
USHORT usVersion;
|
|
|
|
WORD cCurImage;
|
|
|
|
WORD cMaxImage;
|
2000-01-30 22:21:22 +00:00
|
|
|
WORD cGrow;
|
2000-01-29 21:00:25 +00:00
|
|
|
WORD cx;
|
|
|
|
WORD cy;
|
|
|
|
COLORREF bkcolor;
|
|
|
|
WORD flags;
|
2000-01-30 22:21:22 +00:00
|
|
|
SHORT ovls[4];
|
1999-11-23 23:40:01 +00:00
|
|
|
} ILHEAD;
|
2000-01-29 21:00:25 +00:00
|
|
|
#include "poppack.h"
|
2007-04-21 09:16:04 +00:00
|
|
|
|
1998-03-15 20:29:56 +00:00
|
|
|
#endif /* __WINE_IMAGELIST_H */
|