Commit e43edbd5 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

Rearrange members of HIMAGELIST to match Windows.

Reuse image and mask DCs.
parent ed3417e3
...@@ -29,28 +29,29 @@ ...@@ -29,28 +29,29 @@
/* the ones with offsets at the end are the same as in Windows */ /* the ones with offsets at the end are the same as in Windows */
struct _IMAGELIST struct _IMAGELIST
{ {
DWORD magic; /* 00: 'SAMX' */ DWORD magic; /* 00: 'SAMX' */
INT cCurImage; /* 04: ImageCount */ INT cCurImage; /* 04: ImageCount */
INT cMaxImage; /* 08: maximages */ INT cMaxImage; /* 08: maximages */
DWORD x3; INT cGrow; /* 0c: cGrow */
INT cx; /* 10: cx */ INT cx; /* 10: cx */
INT cy; /* 14: cy */ INT cy; /* 14: cy */
DWORD x4; DWORD x4;
UINT flags; /* 1c: flags */ UINT flags; /* 1c: flags */
DWORD x5; COLORREF clrFg; /* 20: foreground color */
COLORREF clrBk; /* 24: bkcolor */ COLORREF clrBk; /* 24: backgournd color */
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 */
/* not yet found out */ /* not yet found out */
HBITMAP hbmImage;
HBITMAP hbmMask;
HBRUSH hbrBlend25; HBRUSH hbrBlend25;
HBRUSH hbrBlend50; HBRUSH hbrBlend50;
COLORREF clrFg;
INT cInitial; INT cInitial;
INT cGrow;
UINT uBitsPixel; UINT uBitsPixel;
INT nOvlIdx[15];
}; };
#define IMAGELIST_MAGIC 0x53414D58 #define IMAGELIST_MAGIC 0x53414D58
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment