ReactOS  0.4.14-dev-98-gb0d4763
commoncontrols.idl
Go to the documentation of this file.
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 import "oaidl.idl";
22 import "ocidl.idl";
23 
24 /* Definitions required for widl, but already defined in commctrl.h for C */
25 cpp_quote("#if 0")
26 typedef DWORD RGBQUAD;
28 
29 typedef struct
30 {
33  int Unused1;
34  int Unused2;
36 } IMAGEINFO;
37 
39 
40 typedef struct
41 {
44  int i;
46  int x;
47  int y;
48  int cx;
49  int cy;
50  int xBitmap;
51  int yBitmap;
60 
62 cpp_quote("#endif")
63 
65 
67 
68 [
69  uuid(46eb5926-582e-4017-9fdf-e8998daa0950),
70  local
71 ]
73 {
74  HRESULT Add(
75  [in] HBITMAP hbmImage,
76  [in] HBITMAP hbmMask,
77  [out] int* pi);
78 
79  HRESULT ReplaceIcon(
80  [in] int i,
81  [in] HICON hicon,
82  [out] int* pi);
83 
84  HRESULT SetOverlayImage(
85  [in] int iImage,
86  [in] int iOverlay);
87 
89  [in] int i,
90  [in] HBITMAP hbmImage,
91  [in] HBITMAP hbmMask);
92 
93  HRESULT AddMasked(
94  [in] HBITMAP hbmImage,
95  [in] COLORREF crMask,
96  [out] int* pi);
97 
98  HRESULT Draw(
99  [in] IMAGELISTDRAWPARAMS* pimldp);
100 
101  HRESULT Remove(
102  [in] int i);
103 
105  [in] int i,
106  [in] UINT flags,
107  [out] HICON* picon);
108 
109  HRESULT GetImageInfo(
110  [in] int i,
112 
113  HRESULT Copy(
114  [in] int iDst,
115  [in] IUnknown* punkSrc,
116  [in] int iSrc,
117  [in] UINT uFlags);
118 
119  HRESULT Merge(
120  [in] int i1,
121  [in] IUnknown* punk2,
122  [in] int i2,
123  [in] int dx,
124  [in] int dy,
125  [out] REFIID riid,
126  [out] PVOID* ppv);
127 
128  HRESULT Clone(
129  [in] REFIID riid,
130  [out] PVOID* ppv);
131 
132  HRESULT GetImageRect(
133  [in] int i,
134  [out] RECT* prc);
135 
136  HRESULT GetIconSize(
137  [out] int* cx,
138  [out] int* cy);
139 
140  HRESULT SetIconSize(
141  [in] int cx,
142  [in] int cy);
143 
144  HRESULT GetImageCount(
145  [out] int* pi);
146 
147  HRESULT SetImageCount(
148  [in] UINT uNewCount);
149 
151  [in] COLORREF clrBk,
152  [out] COLORREF* pclr);
153 
155  [out] COLORREF* pclr);
156 
157  HRESULT BeginDrag(
158  [in] int iTrack,
159  [in] int dxHotspot,
160  [in] int dyHotspot);
161 
162  HRESULT EndDrag();
163 
164  HRESULT DragEnter(
165  [in] HWND hwndLock,
166  [in] int x,
167  [in] int y);
168 
169  HRESULT DragLeave(
170  [in] HWND hwndLock);
171 
172  HRESULT DragMove(
173  [in] int x,
174  [in] int y);
175 
176  HRESULT SetDragCursorImage(
177  [in] IUnknown* punk,
178  [in] int iDrag,
179  [in] int dxHotspot,
180  [in] int dyHotspot);
181 
182  HRESULT DragShowNolock(
183  [in] BOOL fShow);
184 
185  HRESULT GetDragImage(
186  [out] POINT * ppt,
187  [out] POINT * pptHotspot,
188  [out] REFIID riid,
189  [out] PVOID* ppv);
190 
191  HRESULT GetItemFlags(
192  [in] int i,
193  [out] DWORD *dwFlags);
194 
195  HRESULT GetOverlayImage(
196  [in] int iOverlay,
197  [out] int* piIndex);
198 }
199 
200 [
201  uuid(192b9d83-50fc-457b-90a0-2b82a8b5dae1),
202  local
203 ]
205 {
206  typedef struct tagIMAGELISTSTATS
207  {
212  } IMAGELISTSTATS;
213 
214  HRESULT Resize(INT x_size, INT y_size);
218  HRESULT GetCallback([in] REFIID riid, [out, iid_is(riid)] void** ppv);
220  HRESULT DiscardImages([in] INT first_image, [in] INT last_image, [in] DWORD flags);
223  HRESULT Initialize([in] INT cx, [in] INT cy, [in] UINT flags, [in] INT initial, [in] INT grow);
225  HRESULT ReplaceFromImageList([in] INT i, [in] IImageList *imagelist, [in] INT src, [in, unique] IUnknown *unk, [in] DWORD flags);
226 }
227 
228 [
229  uuid(bcada15B-b428-420c-8d28-023590924c9f)
230 ]
232 {
233  [
234  uuid(7c476ba2-02b1-48f4-8048-b24619ddc058)
235  ]
236  coclass ImageList
237  {
238  interface IImageList;
239  interface IImageList2;
240  }
241 }
HBITMAP hbmImage
COLORREF WINAPI GetBkColor(_In_ HDC)
Definition: dc.c:954
static HICON
Definition: imagelist.c:84
#define REFIID
Definition: guiddef.h:118
HRESULT Initialize([in] INT cx, [in] INT cy, [in] UINT flags, [in] INT initial, [in] INT grow)
const UINT ILIF_ALPHA
HRESULT Replace2([in] INT i, [in] HBITMAP image, [in, unique] HBITMAP mask, [in, unique] IUnknown *unk, [in] DWORD flags)
REFIID riid
Definition: precomp.h:44
#define REFCLSID
Definition: guiddef.h:117
GLint dy
Definition: linetemp.h:97
static HDC
Definition: imagelist.c:92
void Draw(HDC aDc)
Definition: magnifier.c:359
REFIID LPVOID * ppv
Definition: atlbase.h:39
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
HRESULT PreloadImages([in] IMAGELISTDRAWPARAMS *params)
void Replace(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF fg, COLORREF bg, LONG radius)
Definition: drawing.cpp:134
UINT uFlags
Definition: api.c:60
FT_Library library
Definition: cffdrivr.c:654
int32_t INT
Definition: typedefs.h:56
coclass AMMultiMediaStream cpp_quote("DEFINE_GUID(CLSID_AMDirectDrawStream, 0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") cpp_quote("DEFINE_GUID(CLSID_AMAudioStream
HRESULT ReplaceFromImageList([in] INT i, [in] IImageList *imagelist, [in] INT src, [in, unique] IUnknown *unk, [in] DWORD flags)
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
Definition: dc.c:975
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
IMAGELISTDRAWPARAMS * LPIMAGELISTDRAWPARAMS
GLenum GLint GLuint mask
Definition: glext.h:6028
GLenum const GLfloat * params
Definition: glext.h:5645
unsigned int BOOL
Definition: ntddk_ex.h:94
#define e
Definition: ke_i.h:82
HRESULT GetStatistics([in, out] IMAGELISTSTATS *stats)
static CRYPT_DATA_BLOB b1[]
Definition: msg.c:573
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:570
_In_ BOOLEAN Remove
Definition: psfuncs.h:110
IMAGEINFO * LPIMAGEINFO
struct _IMAGEINFO IMAGEINFO
MmuTrapHandler callback[0x30]
Definition: mmuobject.c:44
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
_In_ int _Out_ IMAGEINFO * pImageInfo
Definition: commctrl.h:588
LONG HRESULT
Definition: typedefs.h:77
DWORD COLORREF
Definition: windef.h:285
HRESULT SetCallback([in, unique] IUnknown *callback)
#define WINAPI
Definition: msvc.h:8
const GLubyte * c
Definition: glext.h:8905
static FILE * out
Definition: regtests2xml.c:44
unsigned long DWORD
Definition: ntddk_ex.h:95
LPFOR_CONTEXT fc
Definition: for.c:53
GLbitfield flags
Definition: glext.h:7161
static DWORD pi
Definition: protocol.c:150
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
HRESULT DiscardImages([in] INT first_image, [in] INT last_image, [in] DWORD flags)
GLenum src
Definition: glext.h:6340
#define f4(x, y, z)
Definition: sha1.c:33
HRESULT Resize(INT x_size, INT y_size)
#define interface
Definition: basetyps.h:61
static int GetIcon(LPCITEMIDLIST lpi, UINT uFlags)
Definition: brsfolder.c:286
#define local
Definition: zutil.h:30
HRESULT SetOriginalSize([in] INT image, [in] INT cx, [in] INT cy)
HRESULT ForceImagePresent([in] INT image, DWORD flags)
_Out_opt_ POINT * pptHotspot
Definition: commctrl.h:539
VOID Copy(PVOID Src, PVOID Dst, ULONG NumBytes)
Definition: mmixer.c:131
HBITMAP hbmMask
GLuint in
Definition: glext.h:9616
unsigned int UINT
Definition: ndis.h:50
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLint dx
Definition: linetemp.h:97
_Out_opt_ int * cx
Definition: commctrl.h:570
HRESULT GetOriginalSize([in] INT image, [in] DWORD flags, [out] INT *cx, [out] INT *cy)
Definition: msctf.idl:510
#define const
Definition: zconf.h:230
struct IImageList2::tagIMAGELISTSTATS IMAGELISTSTATS
static HBITMAP
Definition: button.c:44
_Out_ LPRECT prc
Definition: ntgdi.h:1658
struct _IMAGELISTDRAWPARAMS IMAGELISTDRAWPARAMS
HRESULT GetCallback([in] REFIID riid, [out, iid_is(riid)] void **ppv)
HRESULT WINAPI ImageList_CoCreateInstance(REFCLSID, const IUnknown *, REFIID, void **)
Definition: imagelist.c:3430