2 * Common controls v6 interface definitions
4 * Copyright 2009 Owen Rudge for CodeWeavers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 /* Definitions required for widl, but already defined in commctrl.h for C */
26 typedef DWORD RGBQUAD
;
27 typedef IUnknown
* HIMAGELIST
;
38 typedef IMAGEINFO
* LPIMAGEINFO
;
59 } IMAGELISTDRAWPARAMS
;
61 typedef IMAGELISTDRAWPARAMS
* LPIMAGELISTDRAWPARAMS
;
64 cpp_quote
("HRESULT WINAPI ImageList_CoCreateInstance(REFCLSID,const IUnknown *, REFIID,void **);")
66 const UINT ILIF_ALPHA
= 1;
69 uuid(46eb5926
-582e-4017-9fdf
-e8998daa0950
),
72 interface IImageList
: IUnknown
75 [in] HBITMAP hbmImage
,
84 HRESULT SetOverlayImage
(
90 [in] HBITMAP hbmImage
,
91 [in] HBITMAP hbmMask
);
94 [in] HBITMAP hbmImage
,
99 [in] IMAGELISTDRAWPARAMS
* pimldp
);
109 HRESULT GetImageInfo
(
111 [out] IMAGEINFO
* pImageInfo
);
115 [in] IUnknown
* punkSrc
,
121 [in] IUnknown
* punk2
,
132 HRESULT GetImageRect
(
144 HRESULT GetImageCount
(
147 HRESULT SetImageCount
(
148 [in] UINT uNewCount
);
152 [out] COLORREF
* pclr
);
155 [out] COLORREF
* pclr
);
176 HRESULT SetDragCursorImage
(
182 HRESULT DragShowNolock
(
185 HRESULT GetDragImage
(
187 [out] POINT
* pptHotspot
,
191 HRESULT GetItemFlags
(
193 [out] DWORD
*dwFlags
);
195 HRESULT GetOverlayImage
(
201 uuid(192b9d83
-50fc
-457b
-90a0
-2b82a8b5dae1
),
204 interface IImageList2
: IImageList
206 typedef struct tagIMAGELISTSTATS
214 HRESULT Resize
(INT x_size
, INT y_size
);
215 HRESULT GetOriginalSize
([in] INT image
, [in] DWORD flags
, [out] INT *cx
, [out] INT *cy
);
216 HRESULT SetOriginalSize
([in] INT image
, [in] INT cx
, [in] INT cy
);
217 HRESULT SetCallback
([in, unique] IUnknown
*callback);
218 HRESULT GetCallback
([in] REFIID riid
, [out, iid_is(riid
)] void** ppv
);
219 HRESULT ForceImagePresent
([in] INT image
, DWORD flags
);
220 HRESULT DiscardImages
([in] INT first_image
, [in] INT last_image
, [in] DWORD flags
);
221 HRESULT PreloadImages
([in] IMAGELISTDRAWPARAMS
*params
);
222 HRESULT GetStatistics
([in, out] IMAGELISTSTATS
*stats
);
223 HRESULT Initialize
([in] INT cx
, [in] INT cy
, [in] UINT flags
, [in] INT initial
, [in] INT grow
);
224 HRESULT Replace2
([in] INT i
, [in] HBITMAP image
, [in, unique] HBITMAP mask
, [in, unique] IUnknown
*unk
, [in] DWORD flags
);
225 HRESULT ReplaceFromImageList
([in] INT i
, [in] IImageList
*imagelist
, [in] INT src
, [in, unique] IUnknown
*unk
, [in] DWORD flags
);
229 uuid(bcada15B
-b428
-420c
-8d28
-023590924c9f
)
231 library CommonControlObjects
234 uuid(7c476ba2
-02b1
-48f4
-8048-b24619ddc058
)
238 interface IImageList
;
239 interface IImageList2
;