1 | /*
|
---|
2 | * Common controls v6 interface definitions
|
---|
3 | *
|
---|
4 | * Copyright 2009 Owen Rudge for CodeWeavers
|
---|
5 | *
|
---|
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.
|
---|
10 | *
|
---|
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.
|
---|
15 | *
|
---|
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
|
---|
19 | */
|
---|
20 |
|
---|
21 | /*
|
---|
22 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
23 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
24 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
25 | * a choice of LGPL license versions is made available with the language indicating
|
---|
26 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
27 | * of the LGPL is applied is otherwise unspecified.
|
---|
28 | */
|
---|
29 |
|
---|
30 | import "oaidl.idl";
|
---|
31 | import "ocidl.idl";
|
---|
32 |
|
---|
33 | /* Definitions required for widl, but already defined in commctrl.h for C */
|
---|
34 | cpp_quote("#if 0")
|
---|
35 | typedef DWORD RGBQUAD;
|
---|
36 | typedef IUnknown* HIMAGELIST;
|
---|
37 |
|
---|
38 | typedef struct
|
---|
39 | {
|
---|
40 | HBITMAP hbmImage;
|
---|
41 | HBITMAP hbmMask;
|
---|
42 | int Unused1;
|
---|
43 | int Unused2;
|
---|
44 | RECT rcImage;
|
---|
45 | } IMAGEINFO;
|
---|
46 |
|
---|
47 | typedef IMAGEINFO* LPIMAGEINFO;
|
---|
48 |
|
---|
49 | typedef struct
|
---|
50 | {
|
---|
51 | DWORD cbSize;
|
---|
52 | HIMAGELIST himl;
|
---|
53 | int i;
|
---|
54 | HDC hdcDst;
|
---|
55 | int x;
|
---|
56 | int y;
|
---|
57 | int cx;
|
---|
58 | int cy;
|
---|
59 | int xBitmap;
|
---|
60 | int yBitmap;
|
---|
61 | COLORREF rgbBk;
|
---|
62 | COLORREF rgbFg;
|
---|
63 | UINT fStyle;
|
---|
64 | DWORD dwRop;
|
---|
65 | DWORD fState;
|
---|
66 | DWORD Frame;
|
---|
67 | COLORREF crEffect;
|
---|
68 | } IMAGELISTDRAWPARAMS;
|
---|
69 |
|
---|
70 | typedef IMAGELISTDRAWPARAMS* LPIMAGELISTDRAWPARAMS;
|
---|
71 | cpp_quote("#endif")
|
---|
72 |
|
---|
73 | cpp_quote("HRESULT WINAPI ImageList_CoCreateInstance(REFCLSID,const IUnknown *, REFIID,void **);")
|
---|
74 |
|
---|
75 | const UINT ILIF_ALPHA = 1;
|
---|
76 |
|
---|
77 | [
|
---|
78 | object,
|
---|
79 | uuid(46EB5926-582E-4017-9FDF-E8998DAA0950),
|
---|
80 | helpstring("Image List"),
|
---|
81 | local
|
---|
82 | ]
|
---|
83 | interface IImageList : IUnknown
|
---|
84 | {
|
---|
85 | HRESULT Add(
|
---|
86 | [in] HBITMAP hbmImage,
|
---|
87 | [in] HBITMAP hbmMask,
|
---|
88 | [out] int* pi);
|
---|
89 |
|
---|
90 | HRESULT ReplaceIcon(
|
---|
91 | [in] int i,
|
---|
92 | [in] HICON hicon,
|
---|
93 | [out] int* pi);
|
---|
94 |
|
---|
95 | HRESULT SetOverlayImage(
|
---|
96 | [in] int iImage,
|
---|
97 | [in] int iOverlay);
|
---|
98 |
|
---|
99 | HRESULT Replace(
|
---|
100 | [in] int i,
|
---|
101 | [in] HBITMAP hbmImage,
|
---|
102 | [in] HBITMAP hbmMask);
|
---|
103 |
|
---|
104 | HRESULT AddMasked(
|
---|
105 | [in] HBITMAP hbmImage,
|
---|
106 | [in] COLORREF crMask,
|
---|
107 | [out] int* pi);
|
---|
108 |
|
---|
109 | HRESULT Draw(
|
---|
110 | [in] IMAGELISTDRAWPARAMS* pimldp);
|
---|
111 |
|
---|
112 | HRESULT Remove(
|
---|
113 | [in] int i);
|
---|
114 |
|
---|
115 | HRESULT GetIcon(
|
---|
116 | [in] int i,
|
---|
117 | [in] UINT flags,
|
---|
118 | [out] HICON* picon);
|
---|
119 |
|
---|
120 | HRESULT GetImageInfo(
|
---|
121 | [in] int i,
|
---|
122 | [out] IMAGEINFO* pImageInfo);
|
---|
123 |
|
---|
124 | HRESULT Copy(
|
---|
125 | [in] int iDst,
|
---|
126 | [in] IUnknown* punkSrc,
|
---|
127 | [in] int iSrc,
|
---|
128 | [in] UINT uFlags);
|
---|
129 |
|
---|
130 | HRESULT Merge(
|
---|
131 | [in] int i1,
|
---|
132 | [in] IUnknown* punk2,
|
---|
133 | [in] int i2,
|
---|
134 | [in] int dx,
|
---|
135 | [in] int dy,
|
---|
136 | [out] REFIID riid,
|
---|
137 | [out] PVOID* ppv);
|
---|
138 |
|
---|
139 | HRESULT Clone(
|
---|
140 | [in] REFIID riid,
|
---|
141 | [out] PVOID* ppv);
|
---|
142 |
|
---|
143 | HRESULT GetImageRect(
|
---|
144 | [in] int i,
|
---|
145 | [out] RECT* prc);
|
---|
146 |
|
---|
147 | HRESULT GetIconSize(
|
---|
148 | [out] int* cx,
|
---|
149 | [out] int* cy);
|
---|
150 |
|
---|
151 | HRESULT SetIconSize(
|
---|
152 | [in] int cx,
|
---|
153 | [in] int cy);
|
---|
154 |
|
---|
155 | HRESULT GetImageCount(
|
---|
156 | [out] int* pi);
|
---|
157 |
|
---|
158 | HRESULT SetImageCount(
|
---|
159 | [in] UINT uNewCount);
|
---|
160 |
|
---|
161 | HRESULT SetBkColor(
|
---|
162 | [in] COLORREF clrBk,
|
---|
163 | [out] COLORREF* pclr);
|
---|
164 |
|
---|
165 | HRESULT GetBkColor(
|
---|
166 | [out] COLORREF* pclr);
|
---|
167 |
|
---|
168 | HRESULT BeginDrag(
|
---|
169 | [in] int iTrack,
|
---|
170 | [in] int dxHotspot,
|
---|
171 | [in] int dyHotspot);
|
---|
172 |
|
---|
173 | HRESULT EndDrag();
|
---|
174 |
|
---|
175 | HRESULT DragEnter(
|
---|
176 | [in] HWND hwndLock,
|
---|
177 | [in] int x,
|
---|
178 | [in] int y);
|
---|
179 |
|
---|
180 | HRESULT DragLeave(
|
---|
181 | [in] HWND hwndLock);
|
---|
182 |
|
---|
183 | HRESULT DragMove(
|
---|
184 | [in] int x,
|
---|
185 | [in] int y);
|
---|
186 |
|
---|
187 | HRESULT SetDragCursorImage(
|
---|
188 | [in] IUnknown* punk,
|
---|
189 | [in] int iDrag,
|
---|
190 | [in] int dxHotspot,
|
---|
191 | [in] int dyHotspot);
|
---|
192 |
|
---|
193 | HRESULT DragShowNolock(
|
---|
194 | [in] BOOL fShow);
|
---|
195 |
|
---|
196 | HRESULT GetDragImage(
|
---|
197 | [out] POINT * ppt,
|
---|
198 | [out] POINT * pptHotspot,
|
---|
199 | [out] REFIID riid,
|
---|
200 | [out] PVOID* ppv);
|
---|
201 |
|
---|
202 | HRESULT GetItemFlags(
|
---|
203 | [in] int i,
|
---|
204 | [out] DWORD *dwFlags);
|
---|
205 |
|
---|
206 | HRESULT GetOverlayImage(
|
---|
207 | [in] int iOverlay,
|
---|
208 | [out] int* piIndex);
|
---|
209 | }
|
---|
210 |
|
---|
211 | [
|
---|
212 | uuid(BCADA15B-B428-420c-8D28-023590924C9F)
|
---|
213 | ]
|
---|
214 | library CommonControlObjects
|
---|
215 | {
|
---|
216 | [
|
---|
217 | uuid(7C476BA2-02B1-48f4-8048-B24619DDC058)
|
---|
218 | ]
|
---|
219 | coclass ImageList
|
---|
220 | {
|
---|
221 | interface IImageList;
|
---|
222 | }
|
---|
223 | }
|
---|