Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e6cf9fbc
Commit
e6cf9fbc
authored
Nov 21, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Merge imagelist definitions into the C file.
parent
d0b1b4c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
82 deletions
+50
-82
imagelist.c
dlls/comctl32/imagelist.c
+50
-2
imagelist.h
dlls/comctl32/imagelist.h
+0
-80
No files found.
dlls/comctl32/imagelist.c
View file @
e6cf9fbc
...
...
@@ -52,15 +52,63 @@
#include "commctrl.h"
#include "comctl32.h"
#include "commoncontrols.h"
#include "imagelist.h"
#include "wine/debug.h"
#include "wine/exception.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
imagelist
);
#define MAX_OVERLAYIMAGE 15
struct
_IMAGELIST
{
const
struct
IImageListVtbl
*
lpVtbl
;
/* 00: IImageList vtable */
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: background color */
HBITMAP
hbmImage
;
/* 28: images Bitmap */
HBITMAP
hbmMask
;
/* 2C: masks Bitmap */
HDC
hdcImage
;
/* 30: images MemDC */
HDC
hdcMask
;
/* 34: masks MemDC */
INT
nOvlIdx
[
MAX_OVERLAYIMAGE
];
/* 38: overlay images index */
/* not yet found out */
HBRUSH
hbrBlend25
;
HBRUSH
hbrBlend50
;
INT
cInitial
;
UINT
uBitsPixel
;
char
*
has_alpha
;
LONG
ref
;
/* reference count */
};
#define IMAGELIST_MAGIC 0x53414D58
/* Header used by ImageList_Read() and ImageList_Write() */
#include "pshpack2.h"
typedef
struct
_ILHEAD
{
USHORT
usMagic
;
USHORT
usVersion
;
WORD
cCurImage
;
WORD
cMaxImage
;
WORD
cGrow
;
WORD
cx
;
WORD
cy
;
COLORREF
bkcolor
;
WORD
flags
;
SHORT
ovls
[
4
];
}
ILHEAD
;
#include "poppack.h"
/* internal image list data used for Drag & Drop operations */
typedef
struct
{
...
...
dlls/comctl32/imagelist.h
deleted
100644 → 0
View file @
d0b1b4c7
/*
* ImageList definitions
*
* Copyright 1998 Eric Kohl
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_IMAGELIST_H
#define __WINE_IMAGELIST_H
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
struct
_IMAGELIST
{
const
struct
IImageListVtbl
*
lpVtbl
;
/* 00: IImageList vtable */
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: background color */
HBITMAP
hbmImage
;
/* 28: images Bitmap */
HBITMAP
hbmMask
;
/* 2C: masks Bitmap */
HDC
hdcImage
;
/* 30: images MemDC */
HDC
hdcMask
;
/* 34: masks MemDC */
INT
nOvlIdx
[
15
];
/* 38: overlay images index */
/* not yet found out */
HBRUSH
hbrBlend25
;
HBRUSH
hbrBlend50
;
INT
cInitial
;
UINT
uBitsPixel
;
char
*
has_alpha
;
LONG
ref
;
/* reference count */
};
#define IMAGELIST_MAGIC 0x53414D58
/* Header used by ImageList_Read() and ImageList_Write() */
#include "pshpack2.h"
typedef
struct
_ILHEAD
{
USHORT
usMagic
;
USHORT
usVersion
;
WORD
cCurImage
;
WORD
cMaxImage
;
WORD
cGrow
;
WORD
cx
;
WORD
cy
;
COLORREF
bkcolor
;
WORD
flags
;
SHORT
ovls
[
4
];
}
ILHEAD
;
#include "poppack.h"
#endif
/* __WINE_IMAGELIST_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment