imagelist.h 2.37 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2 3 4
/*
 * ImageList definitions
 *
 * Copyright 1998 Eric Kohl
5 6 7 8 9 10 11 12 13 14 15 16 17 18
 *
 * 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
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
Alexandre Julliard's avatar
Alexandre Julliard committed
19
 */
20

Alexandre Julliard's avatar
Alexandre Julliard committed
21 22
#ifndef __WINE_IMAGELIST_H
#define __WINE_IMAGELIST_H
23

24 25
#include <stdarg.h>

26
#include "windef.h"
27
#include "winbase.h"
28
#include "wingdi.h"
29

30 31 32
#include "pshpack1.h"

/* the ones with offsets at the end are the same as in Windows */
Alexandre Julliard's avatar
Alexandre Julliard committed
33 34
struct _IMAGELIST
{
35 36 37 38 39 40 41 42 43 44
    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 */
    COLORREF    clrBk;                  /* 24: backgournd color */
45 46


47 48 49 50 51 52
    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 */

53
    /* not yet found out */
54 55 56 57
    HBRUSH  hbrBlend25;
    HBRUSH  hbrBlend50;
    INT     cInitial;
    UINT    uBitsPixel;
Alexandre Julliard's avatar
Alexandre Julliard committed
58
};
59

60 61
#define IMAGELIST_MAGIC 0x53414D58

62
/* Header used by ImageList_Read() and ImageList_Write() */
63 64
typedef struct _ILHEAD
{
65 66 67 68
    USHORT	usMagic;
    USHORT	usVersion;
    WORD	cCurImage;
    WORD	cMaxImage;
69
    WORD	cGrow;
70 71 72 73
    WORD	cx;
    WORD	cy;
    COLORREF	bkcolor;
    WORD	flags;
74
    SHORT	ovls[4];
75 76
} ILHEAD;

77
#include "poppack.h"
Alexandre Julliard's avatar
Alexandre Julliard committed
78
#endif  /* __WINE_IMAGELIST_H */