Fix function names.
[wine/multimedia.git] / include / olectl.h
blob53818f078ea3d7f5fb315d7c09f11a9685b1b7d5
1 /*
2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_OLECTL_H
20 #define __WINE_OLECTL_H
22 #if !defined(__midl) && !defined(__WIDL__)
24 #include <ocidl.h>
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
33 * Ole Control Interfaces
35 DEFINE_GUID(CLSID_ConvertVBX,
36 0xfb8f0822,0x0164,0x101b,0x84,0xed,0x08,0x00,0x2b,0x2e,0xc7,0x13);
37 DEFINE_GUID(CLSID_PersistPropset,
38 0xfb8f0821,0x0164,0x101b,0x84,0xed,0x08,0x00,0x2b,0x2e,0xc7,0x13);
40 DEFINE_GUID(CLSID_StdFont,
41 0x0be35203,0x8f91,0x11ce,0x9d,0xe3,0x00,0xaa,0x00,0x4b,0xb8,0x51);
42 DEFINE_GUID(CLSID_StdPicture,
43 0x0be35204,0x8f91,0x11ce,0x9d,0xe3,0x00,0xaa,0x00,0x4b,0xb8,0x51);
45 DEFINE_GUID(CLSID_CFontPropPage,
46 0x0be35200,0x8f91,0x11ce,0x9d,0xe3,0x00,0xaa,0x00,0x4b,0xb8,0x51);
47 DEFINE_GUID(CLSID_CColorPropPage,
48 0x0be35201,0x8f91,0x11ce,0x9d,0xe3,0x00,0xaa,0x00,0x4b,0xb8,0x51);
49 DEFINE_GUID(CLSID_CPicturePropPage,
50 0x0be35202,0x8f91,0x11ce,0x9d,0xe3,0x00,0xaa,0x00,0x4b,0xb8,0x51);
52 DEFINE_GUID(GUID_HIMETRIC,
53 0x66504300,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
54 DEFINE_GUID(GUID_COLOR,
55 0x66504301,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
56 DEFINE_GUID(GUID_XPOSPIXEL,
57 0x66504302,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
58 DEFINE_GUID(GUID_YPOSPIXEL,
59 0x66504303,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
60 DEFINE_GUID(GUID_XSIZEPIXEL,
61 0x66504304,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
62 DEFINE_GUID(GUID_YSIZEPIXEL,
63 0x66504305,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
64 DEFINE_GUID(GUID_XPOS,
65 0x66504306,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
66 DEFINE_GUID(GUID_YPOS,
67 0x66504307,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
68 DEFINE_GUID(GUID_XSIZE,
69 0x66504308,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
70 DEFINE_GUID(GUID_YSIZE,
71 0x66504309,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
73 typedef struct tagOCPFIPARAMS
75 ULONG cbStructSize;
76 HWND hWndOwner;
77 int x;
78 int y;
79 LPCOLESTR lpszCaption;
80 ULONG cObjects;
81 LPUNKNOWN *lplpUnk;
82 ULONG cPages;
83 CLSID *lpPages;
84 LCID lcid;
85 DISPID dispidInitialProperty;
86 } OCPFIPARAMS, *LPOCPFIPARAMS;
89 * FONTDESC is used as an OLE encapsulation of the GDI fonts
91 typedef struct tagFONTDESC {
92 UINT cbSizeofstruct;
93 LPOLESTR lpstrName;
94 CY cySize;
95 SHORT sWeight;
96 SHORT sCharset;
97 BOOL fItalic;
98 BOOL fUnderline;
99 BOOL fStrikethrough;
100 } FONTDESC, *LPFONTDESC;
102 #define FONTSIZE(n) { n##0000, 0 }
104 #define PICTYPE_UNINITIALIZED (-1)
105 #define PICTYPE_NONE 0
106 #define PICTYPE_BITMAP 1
107 #define PICTYPE_METAFILE 2
108 #define PICTYPE_ICON 3
109 #define PICTYPE_ENHMETAFILE 4
111 typedef struct tagPICTDESC {
112 UINT cbSizeofstruct;
113 UINT picType;
114 union {
115 struct {
116 HBITMAP hbitmap;
117 HPALETTE hpal;
118 } bmp;
119 struct {
120 HMETAFILE hmeta;
121 int xExt;
122 int yExt;
123 } wmf;
124 struct {
125 HICON hicon;
126 } icon;
127 struct {
128 HENHMETAFILE hemf;
129 } emf;
130 } DUMMYUNIONNAME;
131 } PICTDESC, *LPPICTDESC;
133 typedef long OLE_XPOS_PIXELS;
134 typedef long OLE_YPOS_PIXELS;
135 typedef long OLE_XSIZE_PIXELS;
136 typedef long OLE_YSIZE_PIXELS;
137 typedef float OLE_XPOS_CONTAINER;
138 typedef float OLE_YPOS_CONTAINER;
139 typedef float OLE_XSIZE_CONTAINER;
140 typedef float OLE_YSIZE_CONTAINER;
142 typedef enum
144 triUnchecked = 0,
145 triChecked = 1,
146 triGray = 2
147 } OLE_TRISTATE;
149 typedef VARIANT_BOOL OLE_OPTEXCLUSIVE;
150 typedef VARIANT_BOOL OLE_CANCELBOOL;
151 typedef VARIANT_BOOL OLE_ENABLEDEFAULTBOOL;
153 HCURSOR WINAPI OleIconToCursor( HINSTANCE hinstExe, HICON hicon);
155 HRESULT WINAPI OleCreatePropertyFrameIndirect( LPOCPFIPARAMS lpParams);
157 HRESULT WINAPI OleCreatePropertyFrame(
158 HWND hwndOwner, UINT x, UINT y,
159 LPCOLESTR lpszCaption, ULONG cObjects, LPUNKNOWN* ppUnk,
160 ULONG cPages, LPCLSID pPageClsID, LCID lcid, DWORD dwReserved,
161 LPVOID pvReserved );
163 HRESULT WINAPI OleLoadPicture( LPSTREAM lpstream, LONG lSize, BOOL fRunmode,
164 REFIID riid, LPVOID *lplpvObj );
166 HRESULT WINAPI OleLoadPictureEx( LPSTREAM lpstream, LONG lSize, BOOL fRunMode,
167 REFIID riid, DWORD xSizeDesired, DWORD ySizeDesired,
168 DWORD dwFlags, LPVOID *lplpvObj );
170 HRESULT WINAPI OleLoadPicturePath( LPOLESTR szURLorPath, LPUNKNOWN punkCaller,
171 DWORD dwReserved, OLE_COLOR clrReserved, REFIID riid,
172 LPVOID *ppvRet );
174 HRESULT WINAPI OleCreatePictureIndirect(LPPICTDESC lpPictDesc, REFIID riid,
175 BOOL fOwn, LPVOID * lplpvObj );
177 HRESULT WINAPI OleCreateFontIndirect(LPFONTDESC lpFontDesc, REFIID riid,
178 LPVOID* lplpvObj);
180 HRESULT WINAPI OleTranslateColor( OLE_COLOR clr, HPALETTE hpal,
181 COLORREF* lpcolorref);
183 /* Reflected Window Message IDs */
184 #define OCM__BASE (WM_USER+0x1c00)
185 #define OCM_COMMAND (OCM__BASE + WM_COMMAND)
187 #define OCM_CTLCOLORBTN (OCM__BASE + WM_CTLCOLORBTN)
188 #define OCM_CTLCOLOREDIT (OCM__BASE + WM_CTLCOLOREDIT)
189 #define OCM_CTLCOLORDLG (OCM__BASE + WM_CTLCOLORDLG)
190 #define OCM_CTLCOLORLISTBOX (OCM__BASE + WM_CTLCOLORLISTBOX)
191 #define OCM_CTLCOLORMSGBOX (OCM__BASE + WM_CTLCOLORMSGBOX)
192 #define OCM_CTLCOLORSCROLLBAR (OCM__BASE + WM_CTLCOLORSCROLLBAR)
193 #define OCM_CTLCOLORSTATIC (OCM__BASE + WM_CTLCOLORSTATIC)
195 #define OCM_DRAWITEM (OCM__BASE + WM_DRAWITEM)
196 #define OCM_MEASUREITEM (OCM__BASE + WM_MEASUREITEM)
197 #define OCM_DELETEITEM (OCM__BASE + WM_DELETEITEM)
198 #define OCM_VKEYTOITEM (OCM__BASE + WM_VKEYTOITEM)
199 #define OCM_CHARTOITEM (OCM__BASE + WM_CHARTOITEM)
200 #define OCM_COMPAREITEM (OCM__BASE + WM_COMPAREITEM)
201 #define OCM_HSCROLL (OCM__BASE + WM_HSCROLL)
202 #define OCM_VSCROLL (OCM__BASE + WM_VSCROLL)
203 #define OCM_PARENTNOTIFY (OCM__BASE + WM_PARENTNOTIFY)
204 #define OCM_NOTIFY (OCM__BASE + WM_NOTIFY)
206 #define CONNECT_E_FIRST MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x0200)
207 #define CONNECT_E_LAST MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x020F)
208 #define CONNECT_S_FIRST MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x0200)
209 #define CONNECT_S_LAST MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x020F)
211 #define CONNECT_E_NOCONNECTION (CONNECT_E_FIRST+0)
212 #define CONNECT_E_ADVISELIMIT (CONNECT_E_FIRST+1)
213 #define CONNECT_E_CANNOTCONNECT (CONNECT_E_FIRST+2)
214 #define CONNECT_E_OVERRIDDEN (CONNECT_E_FIRST+3)
216 #define SELFREG_E_FIRST MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x0200)
217 #define SELFREG_E_LAST MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x020F)
218 #define SELFREG_S_FIRST MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x0200)
219 #define SELFREG_S_LAST MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x020F)
220 #define SELFREG_E_TYPELIB (SELFREG_E_FIRST+0)
221 #define SELFREG_E_CLASS (SELFREG_E_FIRST+1)
223 #ifndef FACILITY_CONTROL
224 #define FACILITY_CONTROL 0xa
225 #endif
226 #define STD_CTL_SCODE(n) MAKE_SCODE(SEVERITY_ERROR, FACILITY_CONTROL, n)
227 #define CTL_E_ILLEGALFUNCTIONCALL STD_CTL_SCODE(5)
228 #define CTL_E_OVERFLOW STD_CTL_SCODE(6)
229 #define CTL_E_OUTOFMEMORY STD_CTL_SCODE(7)
230 #define CTL_E_DIVISIONBYZERO STD_CTL_SCODE(11)
231 #define CTL_E_OUTOFSTRINGSPACE STD_CTL_SCODE(14)
232 #define CTL_E_OUTOFSTACKSPACE STD_CTL_SCODE(28)
233 #define CTL_E_BADFILENAMEORNUMBER STD_CTL_SCODE(52)
234 #define CTL_E_FILENOTFOUND STD_CTL_SCODE(53)
235 #define CTL_E_BADFILEMODE STD_CTL_SCODE(54)
236 #define CTL_E_FILEALREADYOPEN STD_CTL_SCODE(55)
237 #define CTL_E_DEVICEIOERROR STD_CTL_SCODE(57)
238 #define CTL_E_FILEALREADYEXISTS STD_CTL_SCODE(58)
239 #define CTL_E_BADRECORDLENGTH STD_CTL_SCODE(59)
240 #define CTL_E_DISKFULL STD_CTL_SCODE(61)
241 #define CTL_E_BADRECORDNUMBER STD_CTL_SCODE(63)
242 #define CTL_E_BADFILENAME STD_CTL_SCODE(64)
243 #define CTL_E_TOOMANYFILES STD_CTL_SCODE(67)
244 #define CTL_E_DEVICEUNAVAILABLE STD_CTL_SCODE(68)
245 #define CTL_E_PERMISSIONDENIED STD_CTL_SCODE(70)
246 #define CTL_E_DISKNOTREADY STD_CTL_SCODE(71)
247 #define CTL_E_PATHFILEACCESSERROR STD_CTL_SCODE(75)
248 #define CTL_E_PATHNOTFOUND STD_CTL_SCODE(76)
249 #define CTL_E_INVALIDPATTERNSTRING STD_CTL_SCODE(93)
250 #define CTL_E_INVALIDUSEOFNULL STD_CTL_SCODE(94)
251 #define CTL_E_INVALIDFILEFORMAT STD_CTL_SCODE(321)
252 #define CTL_E_INVALIDPROPERTYVALUE STD_CTL_SCODE(380)
253 #define CTL_E_INVALIDPROPERTYARRAYINDEX STD_CTL_SCODE(381)
254 #define CTL_E_SETNOTSUPPORTEDATRUNTIME STD_CTL_SCODE(382)
255 #define CTL_E_SETNOTSUPPORTED STD_CTL_SCODE(383)
256 #define CTL_E_NEEDPROPERTYARRAYINDEX STD_CTL_SCODE(385)
257 #define CTL_E_SETNOTPERMITTED STD_CTL_SCODE(387)
258 #define CTL_E_GETNOTSUPPORTEDATRUNTIME STD_CTL_SCODE(393)
259 #define CTL_E_GETNOTSUPPORTED STD_CTL_SCODE(394)
260 #define CTL_E_PROPERTYNOTFOUND STD_CTL_SCODE(422)
261 #define CTL_E_INVALIDCLIPBOARDFORMAT STD_CTL_SCODE(460)
262 #define CTL_E_INVALIDPICTURE STD_CTL_SCODE(481)
263 #define CTL_E_PRINTERERROR STD_CTL_SCODE(482)
264 #define CTL_E_CANTSAVEFILETOTEMP STD_CTL_SCODE(735)
265 #define CTL_E_SEARCHTEXTNOTFOUND STD_CTL_SCODE(744)
266 #define CTL_E_REPLACEMENTSTOOLONG STD_CTL_SCODE(746)
268 #define VT_COLOR VT_I4
269 #define VT_FONT VT_DISPATCH
270 #define VT_STREAMED_PROPSET 73 /* [P] Stream contains a property set */
271 #define VT_STORED_PROPSET 74 /* [P] Storage contains a property set */
272 #define VT_BLOB_PROPSET 75 /* [P] Blob contains a property set */
273 #define VT_VERBOSE_ENUM 76 /* [P] Enum value with text string */
275 #define PERPROP_E_FIRST MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x0200)
276 #define PERPROP_E_LAST MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x020F)
277 #define PERPROP_S_FIRST MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x0200)
278 #define PERPROP_S_LAST MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x020F)
280 #define PERPROP_E_NOPAGEAVAILABLE (PERPROP_E_FIRST+0)
283 #ifdef __cplusplus
285 #endif
287 #endif /* !__midl && !__WIDL__ */
289 /* standard dispatch ID's */
290 #define DISPID_AUTOSIZE (-500)
291 #define DISPID_BACKCOLOR (-501)
292 #define DISPID_BACKSTYLE (-502)
293 #define DISPID_BORDERCOLOR (-503)
294 #define DISPID_BORDERSTYLE (-504)
295 #define DISPID_BORDERWIDTH (-505)
296 #define DISPID_DRAWMODE (-507)
297 #define DISPID_DRAWSTYLE (-508)
298 #define DISPID_DRAWWIDTH (-509)
299 #define DISPID_FILLCOLOR (-510)
300 #define DISPID_FILLSTYLE (-511)
301 #define DISPID_FONT (-512)
302 #define DISPID_FORECOLOR (-513)
303 #define DISPID_ENABLED (-514)
304 #define DISPID_HWND (-515)
305 #define DISPID_TABSTOP (-516)
306 #define DISPID_TEXT (-517)
307 #define DISPID_CAPTION (-518)
308 #define DISPID_BORDERVISIBLE (-519)
309 #define DISPID_APPEARANCE (-520)
310 #define DISPID_MOUSEPOINTER (-521)
311 #define DISPID_MOUSEICON (-522)
312 #define DISPID_PICTURE (-523)
313 #define DISPID_VALID (-524)
314 #define DISPID_READYSTATE (-525)
316 #define DISPID_REFRESH (-550)
317 #define DISPID_DOCLICK (-551)
318 #define DISPID_ABOUTBOX (-552)
320 #define DISPID_CLICK (-600)
321 #define DISPID_DBLCLICK (-601)
322 #define DISPID_KEYDOWN (-602)
323 #define DISPID_KEYPRESS (-603)
324 #define DISPID_KEYUP (-604)
325 #define DISPID_MOUSEDOWN (-605)
326 #define DISPID_MOUSEMOVE (-606)
327 #define DISPID_MOUSEUP (-607)
328 #define DISPID_ERROREVENT (-608)
329 #define DISPID_READYSTATECHANGE (-609)
331 #define DISPID_AMBIENT_BACKCOLOR (-701)
332 #define DISPID_AMBIENT_DISPLAYNAME (-702)
333 #define DISPID_AMBIENT_FONT (-703)
334 #define DISPID_AMBIENT_FORECOLOR (-704)
335 #define DISPID_AMBIENT_LOCALEID (-705)
336 #define DISPID_AMBIENT_MESSAGEREFLECT (-706)
337 #define DISPID_AMBIENT_SCALEUNITS (-707)
338 #define DISPID_AMBIENT_TEXTALIGN (-708)
339 #define DISPID_AMBIENT_USERMODE (-709)
340 #define DISPID_AMBIENT_UIDEAD (-710)
341 #define DISPID_AMBIENT_SHOWGRABHANDLES (-711)
342 #define DISPID_AMBIENT_SHOWHATCHING (-712)
343 #define DISPID_AMBIENT_DISPLAYASDEFAULT (-713)
344 #define DISPID_AMBIENT_SUPPORTSMNEMONICS (-714)
345 #define DISPID_AMBIENT_AUTOCLIP (-715)
346 #define DISPID_AMBIENT_APPEARANCE (-716)
347 #define DISPID_AMBIENT_PALETTE (-726)
348 #define DISPID_AMBIENT_TRANSFERPRIORITY (-728)
350 #define DISPID_Name (-800)
351 #define DISPID_Delete (-801)
352 #define DISPID_Object (-802)
353 #define DISPID_Parent (-803)
355 #define DISPID_FONT_NAME 0
356 #define DISPID_FONT_SIZE 2
357 #define DISPID_FONT_BOLD 3
358 #define DISPID_FONT_ITALIC 4
359 #define DISPID_FONT_UNDER 5
360 #define DISPID_FONT_STRIKE 6
361 #define DISPID_FONT_WEIGHT 7
362 #define DISPID_FONT_CHARSET 8
364 /* IPicture */
365 #define DISPID_PICT_HANDLE 0
366 #define DISPID_PICT_HPAL 2
367 #define DISPID_PICT_TYPE 3
368 #define DISPID_PICT_WIDTH 4
369 #define DISPID_PICT_HEIGHT 5
370 #define DISPID_PICT_RENDER 6
372 #endif /* __WINE_OLECTL_H */