Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygencommoncontrols.idl
Go to the documentation of this file.
00001 /* 00002 * Common controls v6 interface definitions 00003 * 00004 * Copyright 2009 Owen Rudge for CodeWeavers 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00019 */ 00020 00021 import "oaidl.idl"; 00022 import "ocidl.idl"; 00023 00024 /* Definitions required for widl, but already defined in commctrl.h for C */ 00025 cpp_quote("#if 0") 00026 typedef DWORD RGBQUAD; 00027 typedef IUnknown* HIMAGELIST; 00028 00029 typedef struct 00030 { 00031 HBITMAP hbmImage; 00032 HBITMAP hbmMask; 00033 int Unused1; 00034 int Unused2; 00035 RECT rcImage; 00036 } IMAGEINFO; 00037 00038 typedef IMAGEINFO* LPIMAGEINFO; 00039 00040 typedef struct 00041 { 00042 DWORD cbSize; 00043 HIMAGELIST himl; 00044 int i; 00045 HDC hdcDst; 00046 int x; 00047 int y; 00048 int cx; 00049 int cy; 00050 int xBitmap; 00051 int yBitmap; 00052 COLORREF rgbBk; 00053 COLORREF rgbFg; 00054 UINT fStyle; 00055 DWORD dwRop; 00056 DWORD fState; 00057 DWORD Frame; 00058 COLORREF crEffect; 00059 } IMAGELISTDRAWPARAMS; 00060 00061 typedef IMAGELISTDRAWPARAMS* LPIMAGELISTDRAWPARAMS; 00062 cpp_quote("#endif") 00063 00064 cpp_quote("HRESULT WINAPI ImageList_CoCreateInstance(REFCLSID,const IUnknown *, REFIID,void **);") 00065 00066 const UINT ILIF_ALPHA = 1; 00067 00068 [ 00069 object, 00070 uuid(46EB5926-582E-4017-9FDF-E8998DAA0950), 00071 helpstring("Image List"), 00072 local 00073 ] 00074 interface IImageList : IUnknown 00075 { 00076 HRESULT Add( 00077 [in] HBITMAP hbmImage, 00078 [in] HBITMAP hbmMask, 00079 [out] int* pi); 00080 00081 HRESULT ReplaceIcon( 00082 [in] int i, 00083 [in] HICON hicon, 00084 [out] int* pi); 00085 00086 HRESULT SetOverlayImage( 00087 [in] int iImage, 00088 [in] int iOverlay); 00089 00090 HRESULT Replace( 00091 [in] int i, 00092 [in] HBITMAP hbmImage, 00093 [in] HBITMAP hbmMask); 00094 00095 HRESULT AddMasked( 00096 [in] HBITMAP hbmImage, 00097 [in] COLORREF crMask, 00098 [out] int* pi); 00099 00100 HRESULT Draw( 00101 [in] IMAGELISTDRAWPARAMS* pimldp); 00102 00103 HRESULT Remove( 00104 [in] int i); 00105 00106 HRESULT GetIcon( 00107 [in] int i, 00108 [in] UINT flags, 00109 [out] HICON* picon); 00110 00111 HRESULT GetImageInfo( 00112 [in] int i, 00113 [out] IMAGEINFO* pImageInfo); 00114 00115 HRESULT Copy( 00116 [in] int iDst, 00117 [in] IUnknown* punkSrc, 00118 [in] int iSrc, 00119 [in] UINT uFlags); 00120 00121 HRESULT Merge( 00122 [in] int i1, 00123 [in] IUnknown* punk2, 00124 [in] int i2, 00125 [in] int dx, 00126 [in] int dy, 00127 [out] REFIID riid, 00128 [out] PVOID* ppv); 00129 00130 HRESULT Clone( 00131 [in] REFIID riid, 00132 [out] PVOID* ppv); 00133 00134 HRESULT GetImageRect( 00135 [in] int i, 00136 [out] RECT* prc); 00137 00138 HRESULT GetIconSize( 00139 [out] int* cx, 00140 [out] int* cy); 00141 00142 HRESULT SetIconSize( 00143 [in] int cx, 00144 [in] int cy); 00145 00146 HRESULT GetImageCount( 00147 [out] int* pi); 00148 00149 HRESULT SetImageCount( 00150 [in] UINT uNewCount); 00151 00152 HRESULT SetBkColor( 00153 [in] COLORREF clrBk, 00154 [out] COLORREF* pclr); 00155 00156 HRESULT GetBkColor( 00157 [out] COLORREF* pclr); 00158 00159 HRESULT BeginDrag( 00160 [in] int iTrack, 00161 [in] int dxHotspot, 00162 [in] int dyHotspot); 00163 00164 HRESULT EndDrag(); 00165 00166 HRESULT DragEnter( 00167 [in] HWND hwndLock, 00168 [in] int x, 00169 [in] int y); 00170 00171 HRESULT DragLeave( 00172 [in] HWND hwndLock); 00173 00174 HRESULT DragMove( 00175 [in] int x, 00176 [in] int y); 00177 00178 HRESULT SetDragCursorImage( 00179 [in] IUnknown* punk, 00180 [in] int iDrag, 00181 [in] int dxHotspot, 00182 [in] int dyHotspot); 00183 00184 HRESULT DragShowNolock( 00185 [in] BOOL fShow); 00186 00187 HRESULT GetDragImage( 00188 [out] POINT * ppt, 00189 [out] POINT * pptHotspot, 00190 [out] REFIID riid, 00191 [out] PVOID* ppv); 00192 00193 HRESULT GetItemFlags( 00194 [in] int i, 00195 [out] DWORD *dwFlags); 00196 00197 HRESULT GetOverlayImage( 00198 [in] int iOverlay, 00199 [out] int* piIndex); 00200 } 00201 00202 [ 00203 uuid(BCADA15B-B428-420c-8D28-023590924C9F) 00204 ] 00205 library CommonControlObjects 00206 { 00207 [ 00208 uuid(7C476BA2-02B1-48f4-8048-B24619DDC058) 00209 ] 00210 coclass ImageList 00211 { 00212 interface IImageList; 00213 } 00214 } Generated on Sun May 27 2012 04:31:11 for ReactOS by
1.7.6.1
|