source: trunk/include/win/olectl.h@ 4114

Last change on this file since 4114 was 1742, checked in by davidr, 26 years ago

Added PICTURE enum & removed DUMMY_UNION_NAME

File size: 11.4 KB
Line 
1/* $Id: olectl.h,v 1.2 1999-11-14 21:01:22 davidr Exp $ */
2
3#ifndef __WINE_OLECTL_H
4#define __WINE_OLECTL_H
5
6#include "windef.h"
7
8#define WINOLECTLAPI INT WINAPI
9
10/*
11 * Ole Control Interfaces
12 */
13DEFINE_GUID(CLSID_ConvertVBX,
14 0xfb8f0822,0x0164,0x101b,0x84,0xed,0x08,0x00,0x2b,0x2e,0xc7,0x13);
15DEFINE_GUID(CLSID_PersistPropset,
16 0xfb8f0821,0x0164,0x101b,0x84,0xed,0x08,0x00,0x2b,0x2e,0xc7,0x13);
17
18DEFINE_GUID(CLSID_StdFont,
19 0x0be35203,0x8f91,0x11ce,0x9d,0xe3,0x00,0xaa,0x00,0x4b,0xb8,0x51);
20DEFINE_GUID(CLSID_StdPicture,
21 0x0be35204,0x8f91,0x11ce,0x9d,0xe3,0x00,0xaa,0x00,0x4b,0xb8,0x51);
22
23DEFINE_GUID(CLSID_CFontPropPage,
24 0x0be35200,0x8f91,0x11ce,0x9d,0xe3,0x00,0xaa,0x00,0x4b,0xb8,0x51);
25DEFINE_GUID(CLSID_CColorPropPage,
26 0x0be35201,0x8f91,0x11ce,0x9d,0xe3,0x00,0xaa,0x00,0x4b,0xb8,0x51);
27DEFINE_GUID(CLSID_CPicturePropPage,
28 0x0be35202,0x8f91,0x11ce,0x9d,0xe3,0x00,0xaa,0x00,0x4b,0xb8,0x51);
29
30DEFINE_GUID(GUID_HIMETRIC,
31 0x66504300,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
32DEFINE_GUID(GUID_COLOR,
33 0x66504301,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
34DEFINE_GUID(GUID_XPOSPIXEL,
35 0x66504302,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
36DEFINE_GUID(GUID_YPOSPIXEL,
37 0x66504303,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
38DEFINE_GUID(GUID_XSIZEPIXEL,
39 0x66504304,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
40DEFINE_GUID(GUID_YSIZEPIXEL,
41 0x66504305,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
42DEFINE_GUID(GUID_XPOS,
43 0x66504306,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
44DEFINE_GUID(GUID_YPOS,
45 0x66504307,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
46DEFINE_GUID(GUID_XSIZE,
47 0x66504308,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
48DEFINE_GUID(GUID_YSIZE,
49 0x66504309,0xBE0F,0x101A,0x8B,0xBB,0x00,0xAA,0x00,0x30,0x0C,0xAB);
50
51typedef struct tagOCPFIPARAMS
52{
53 ULONG cbStructSize;
54 HWND hWndOwner;
55 int x;
56 int y;
57 LPCOLESTR lpszCaption;
58 ULONG cObjects;
59 LPUNKNOWN *lplpUnk;
60 ULONG cPages;
61 CLSID *lpPages;
62 LCID lcid;
63 DISPID dispidInitialProperty;
64} OCPFIPARAMS, *LPOCPFIPARAMS;
65
66/*
67 * FONTDESC is used as an OLE encapsulation of the GDI fonts
68 */
69typedef struct tagFONTDESC {
70 UINT cbSizeofstruct;
71 LPOLESTR lpstrName;
72 CY cySize;
73 SHORT sWeight;
74 SHORT sCharset;
75 BOOL fItalic;
76 BOOL fUnderline;
77 BOOL fStrikethrough;
78} FONTDESC, *LPFONTDESC;
79
80#define FONTSIZE(n) { n##0000, 0 }
81
82/* COREL MOD PQ mar 9 - redecl in mfc */
83/*WINOLECTLAPI OleCreateFontIndirect(LPFONTDESC lpFontDesc, REFIID riid, VOID** ppvObj);*/
84
85typedef enum tagPICTURE
86{
87 PICTURE_SCALEABLE = 0x00000001,
88 PICTURE_TRANSPARENT = 0x00000002
89} PICTURE;
90
91#define PICTYPE_UNINITIALIZED (-1)
92#define PICTYPE_NONE 0
93#define PICTYPE_BITMAP 1
94#define PICTYPE_METAFILE 2
95#define PICTYPE_ICON 3
96#define PICTYPE_ENHMETAFILE 4
97
98// DjR - Removed DUMMY stuff as it seemed unworkable in ICC
99typedef struct tagPICTDESC {
100 UINT cbSizeofstruct;
101 UINT picType;
102 union {
103 struct {
104 HBITMAP hbitmap;
105 HPALETTE hpal;
106 } bmp;
107 struct {
108 HMETAFILE hmeta;
109 int xExt;
110 int yExt;
111 } wmf;
112 struct {
113 HICON hicon;
114 } icon;
115 struct {
116 HENHMETAFILE hemf;
117 } emf;
118 } u;
119} PICTDESC, *LPPICTDESC;
120
121typedef long OLE_XPOS_PIXELS;
122typedef long OLE_YPOS_PIXELS;
123typedef long OLE_XSIZE_PIXELS;
124typedef long OLE_YSIZE_PIXELS;
125typedef float OLE_XPOS_CONTAINER;
126typedef float OLE_YPOS_CONTAINER;
127typedef float OLE_XSIZE_CONTAINER;
128typedef float OLE_YSIZE_CONTAINER;
129
130typedef enum
131{
132 triUnchecked = 0,
133 triChecked = 1,
134 triGray = 2
135} OLE_TRISTATE;
136
137typedef VARIANT_BOOL OLE_OPTEXCLUSIVE;
138typedef VARIANT_BOOL OLE_CANCELBOOL;
139typedef VARIANT_BOOL OLE_ENABLEDEFAULTBOOL;
140
141/* standard dispatch ID's */
142#define DISPID_AUTOSIZE (-500)
143#define DISPID_BACKCOLOR (-501)
144#define DISPID_BACKSTYLE (-502)
145#define DISPID_BORDERCOLOR (-503)
146#define DISPID_BORDERSTYLE (-504)
147#define DISPID_BORDERWIDTH (-505)
148#define DISPID_DRAWMODE (-507)
149#define DISPID_DRAWSTYLE (-508)
150#define DISPID_DRAWWIDTH (-509)
151#define DISPID_FILLCOLOR (-510)
152#define DISPID_FILLSTYLE (-511)
153#define DISPID_FONT (-512)
154#define DISPID_FORECOLOR (-513)
155#define DISPID_ENABLED (-514)
156#define DISPID_HWND (-515)
157#define DISPID_TABSTOP (-516)
158#define DISPID_TEXT (-517)
159#define DISPID_CAPTION (-518)
160#define DISPID_BORDERVISIBLE (-519)
161#define DISPID_APPEARANCE (-520)
162#define DISPID_MOUSEPOINTER (-521)
163#define DISPID_MOUSEICON (-522)
164#define DISPID_PICTURE (-523)
165#define DISPID_VALID (-524)
166#define DISPID_READYSTATE (-525)
167
168#define DISPID_REFRESH (-550)
169#define DISPID_DOCLICK (-551)
170#define DISPID_ABOUTBOX (-552)
171
172#define DISPID_CLICK (-600)
173#define DISPID_DBLCLICK (-601)
174#define DISPID_KEYDOWN (-602)
175#define DISPID_KEYPRESS (-603)
176#define DISPID_KEYUP (-604)
177#define DISPID_MOUSEDOWN (-605)
178#define DISPID_MOUSEMOVE (-606)
179#define DISPID_MOUSEUP (-607)
180#define DISPID_ERROREVENT (-608)
181#define DISPID_READYSTATECHANGE (-609)
182
183#define DISPID_AMBIENT_BACKCOLOR (-701)
184#define DISPID_AMBIENT_DISPLAYNAME (-702)
185#define DISPID_AMBIENT_FONT (-703)
186#define DISPID_AMBIENT_FORECOLOR (-704)
187#define DISPID_AMBIENT_LOCALEID (-705)
188#define DISPID_AMBIENT_MESSAGEREFLECT (-706)
189#define DISPID_AMBIENT_SCALEUNITS (-707)
190#define DISPID_AMBIENT_TEXTALIGN (-708)
191#define DISPID_AMBIENT_USERMODE (-709)
192#define DISPID_AMBIENT_UIDEAD (-710)
193#define DISPID_AMBIENT_SHOWGRABHANDLES (-711)
194#define DISPID_AMBIENT_SHOWHATCHING (-712)
195#define DISPID_AMBIENT_DISPLAYASDEFAULT (-713)
196#define DISPID_AMBIENT_SUPPORTSMNEMONICS (-714)
197#define DISPID_AMBIENT_AUTOCLIP (-715)
198#define DISPID_AMBIENT_APPEARANCE (-716)
199#define DISPID_AMBIENT_PALETTE (-726)
200#define DISPID_AMBIENT_TRANSFERPRIORITY (-728)
201
202#define DISPID_Name (-800)
203#define DISPID_Delete (-801)
204#define DISPID_Object (-802)
205#define DISPID_Parent (-803)
206
207/* Reflected Window Message IDs */
208#define OCM__BASE (WM_USER+0x1c00)
209#define OCM_COMMAND (OCM__BASE + WM_COMMAND)
210
211#define OCM_CTLCOLORBTN (OCM__BASE + WM_CTLCOLORBTN)
212#define OCM_CTLCOLOREDIT (OCM__BASE + WM_CTLCOLOREDIT)
213#define OCM_CTLCOLORDLG (OCM__BASE + WM_CTLCOLORDLG)
214#define OCM_CTLCOLORLISTBOX (OCM__BASE + WM_CTLCOLORLISTBOX)
215#define OCM_CTLCOLORMSGBOX (OCM__BASE + WM_CTLCOLORMSGBOX)
216#define OCM_CTLCOLORSCROLLBAR (OCM__BASE + WM_CTLCOLORSCROLLBAR)
217#define OCM_CTLCOLORSTATIC (OCM__BASE + WM_CTLCOLORSTATIC)
218
219#define OCM_DRAWITEM (OCM__BASE + WM_DRAWITEM)
220#define OCM_MEASUREITEM (OCM__BASE + WM_MEASUREITEM)
221#define OCM_DELETEITEM (OCM__BASE + WM_DELETEITEM)
222#define OCM_VKEYTOITEM (OCM__BASE + WM_VKEYTOITEM)
223#define OCM_CHARTOITEM (OCM__BASE + WM_CHARTOITEM)
224#define OCM_COMPAREITEM (OCM__BASE + WM_COMPAREITEM)
225#define OCM_HSCROLL (OCM__BASE + WM_HSCROLL)
226#define OCM_VSCROLL (OCM__BASE + WM_VSCROLL)
227#define OCM_PARENTNOTIFY (OCM__BASE + WM_PARENTNOTIFY)
228#define OCM_NOTIFY (OCM__BASE + WM_NOTIFY)
229
230#define CONNECT_E_FIRST MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x0200)
231#define CONNECT_E_LAST MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x020F)
232#define CONNECT_S_FIRST MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x0200)
233#define CONNECT_S_LAST MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x020F)
234
235#define CONNECT_E_NOCONNECTION (CONNECT_E_FIRST+0)
236#define CONNECT_E_ADVISELIMIT (CONNECT_E_FIRST+1)
237#define CONNECT_E_CANNOTCONNECT (CONNECT_E_FIRST+2)
238#define CONNECT_E_OVERRIDDEN (CONNECT_E_FIRST+3)
239
240#ifndef FACILITY_CONTROL
241#define FACILITY_CONTROL 0xa
242#endif
243#define STD_CTL_SCODE(n) MAKE_SCODE(SEVERITY_ERROR, FACILITY_CONTROL, n)
244#define CTL_E_ILLEGALFUNCTIONCALL STD_CTL_SCODE(5)
245#define CTL_E_OVERFLOW STD_CTL_SCODE(6)
246#define CTL_E_OUTOFMEMORY STD_CTL_SCODE(7)
247#define CTL_E_DIVISIONBYZERO STD_CTL_SCODE(11)
248#define CTL_E_OUTOFSTRINGSPACE STD_CTL_SCODE(14)
249#define CTL_E_OUTOFSTACKSPACE STD_CTL_SCODE(28)
250#define CTL_E_BADFILENAMEORNUMBER STD_CTL_SCODE(52)
251#define CTL_E_FILENOTFOUND STD_CTL_SCODE(53)
252#define CTL_E_BADFILEMODE STD_CTL_SCODE(54)
253#define CTL_E_FILEALREADYOPEN STD_CTL_SCODE(55)
254#define CTL_E_DEVICEIOERROR STD_CTL_SCODE(57)
255#define CTL_E_FILEALREADYEXISTS STD_CTL_SCODE(58)
256#define CTL_E_BADRECORDLENGTH STD_CTL_SCODE(59)
257#define CTL_E_DISKFULL STD_CTL_SCODE(61)
258#define CTL_E_BADRECORDNUMBER STD_CTL_SCODE(63)
259#define CTL_E_BADFILENAME STD_CTL_SCODE(64)
260#define CTL_E_TOOMANYFILES STD_CTL_SCODE(67)
261#define CTL_E_DEVICEUNAVAILABLE STD_CTL_SCODE(68)
262#define CTL_E_PERMISSIONDENIED STD_CTL_SCODE(70)
263#define CTL_E_DISKNOTREADY STD_CTL_SCODE(71)
264#define CTL_E_PATHFILEACCESSERROR STD_CTL_SCODE(75)
265#define CTL_E_PATHNOTFOUND STD_CTL_SCODE(76)
266#define CTL_E_INVALIDPATTERNSTRING STD_CTL_SCODE(93)
267#define CTL_E_INVALIDUSEOFNULL STD_CTL_SCODE(94)
268#define CTL_E_INVALIDFILEFORMAT STD_CTL_SCODE(321)
269#define CTL_E_INVALIDPROPERTYVALUE STD_CTL_SCODE(380)
270#define CTL_E_INVALIDPROPERTYARRAYINDEX STD_CTL_SCODE(381)
271#define CTL_E_SETNOTSUPPORTEDATRUNTIME STD_CTL_SCODE(382)
272#define CTL_E_SETNOTSUPPORTED STD_CTL_SCODE(383)
273#define CTL_E_NEEDPROPERTYARRAYINDEX STD_CTL_SCODE(385)
274#define CTL_E_SETNOTPERMITTED STD_CTL_SCODE(387)
275#define CTL_E_GETNOTSUPPORTEDATRUNTIME STD_CTL_SCODE(393)
276#define CTL_E_GETNOTSUPPORTED STD_CTL_SCODE(394)
277#define CTL_E_PROPERTYNOTFOUND STD_CTL_SCODE(422)
278#define CTL_E_INVALIDCLIPBOARDFORMAT STD_CTL_SCODE(460)
279#define CTL_E_INVALIDPICTURE STD_CTL_SCODE(481)
280#define CTL_E_PRINTERERROR STD_CTL_SCODE(482)
281#define CTL_E_CANTSAVEFILETOTEMP STD_CTL_SCODE(735)
282#define CTL_E_SEARCHTEXTNOTFOUND STD_CTL_SCODE(744)
283#define CTL_E_REPLACEMENTSTOOLONG STD_CTL_SCODE(746)
284
285#define VT_COLOR VT_I4
286#define VT_FONT VT_DISPATCH
287#define VT_STREAMED_PROPSET 73 /* [P] Stream contains a property set */
288#define VT_STORED_PROPSET 74 /* [P] Storage contains a property set */
289#define VT_BLOB_PROPSET 75 /* [P] Blob contains a property set */
290#define VT_VERBOSE_ENUM 76 /* [P] Enum value with text string */
291
292#define PERPROP_E_FIRST MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x0200)
293#define PERPROP_E_LAST MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x020F)
294#define PERPROP_S_FIRST MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x0200)
295#define PERPROP_S_LAST MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x020F)
296
297#define PERPROP_E_NOPAGEAVAILABLE (PERPROP_E_FIRST+0)
298
299#endif /* __WINE_OLECTL_H */
300
301
Note: See TracBrowser for help on using the repository browser.