Added prototypes for OleQueryLinkFromClip, OleQueryCreateFromClip,
[wine] / include / olectl.h
1 #ifndef __WINE_OLECTL_H
2 #define __WINE_OLECTL_H
3
4 #include "wintypes.h"
5
6 #define WINOLECTLAPI INT WINAPI
7
8 /*
9  * FONTDESC is used as an OLE encapsulation of the GDI fonts
10  */
11 typedef struct tagFONTDESC {
12   UINT     cbSizeofstruct;
13   LPOLESTR lpstrName;
14   CY         cySize;
15   SHORT      sWeight;
16   SHORT      sCharset;
17   BOOL     fItalic;
18   BOOL     fUnderline;
19   BOOL     fStrikeThrough;
20 } FONTDESC, *LPFONTDESC;
21
22 WINOLECTLAPI OleCreateFontIndirect(LPFONTDESC lpFontDesc, REFIID riid, VOID** ppvObj);
23
24 typedef long OLE_XPOS_PIXELS;
25 typedef long OLE_YPOS_PIXELS;
26 typedef long OLE_XSIZE_PIXELS;
27 typedef long OLE_YSIZE_PIXELS;
28 typedef float OLE_XPOS_CONTAINER;
29 typedef float OLE_YPOS_CONTAINER;
30 typedef float OLE_XSIZE_CONTAINER;
31 typedef float OLE_YSIZE_CONTAINER;
32
33 typedef enum
34 {
35         triUnchecked = 0,
36         triChecked = 1,
37         triGray = 2
38 } OLE_TRISTATE;
39
40 typedef VARIANT_BOOL OLE_OPTEXCLUSIVE;
41 typedef VARIANT_BOOL OLE_CANCELBOOL;
42 typedef VARIANT_BOOL OLE_ENABLEDEFAULTBOOL;
43
44 /* standard dispatch ID's */
45 #define DISPID_CLICK                    (-600)
46 #define DISPID_DBLCLICK                 (-601)
47 #define DISPID_KEYDOWN                  (-602)
48 #define DISPID_KEYPRESS                 (-603)
49 #define DISPID_KEYUP                    (-604)
50 #define DISPID_MOUSEDOWN                (-605)
51 #define DISPID_MOUSEMOVE                (-606)
52 #define DISPID_MOUSEUP                  (-607)
53 #define DISPID_ERROREVENT               (-608)
54 #define DISPID_READYSTATECHANGE         (-609)
55
56 #define DISPID_AMBIENT_BACKCOLOR        (-701)
57 #define DISPID_AMBIENT_DISPLAYNAME      (-702)
58 #define DISPID_AMBIENT_FONT             (-703)
59 #define DISPID_AMBIENT_FORECOLOR        (-704)
60 #define DISPID_AMBIENT_LOCALEID         (-705)
61 #define DISPID_AMBIENT_MESSAGEREFLECT   (-706)
62 #define DISPID_AMBIENT_SCALEUNITS       (-707)
63 #define DISPID_AMBIENT_TEXTALIGN        (-708)
64 #define DISPID_AMBIENT_USERMODE         (-709)
65 #define DISPID_AMBIENT_UIDEAD           (-710)
66 #define DISPID_AMBIENT_SHOWGRABHANDLES  (-711)
67 #define DISPID_AMBIENT_SHOWHATCHING     (-712)
68 #define DISPID_AMBIENT_DISPLAYASDEFAULT (-713)
69 #define DISPID_AMBIENT_SUPPORTSMNEMONICS (-714)
70 #define DISPID_AMBIENT_AUTOCLIP         (-715)
71 #define DISPID_AMBIENT_APPEARANCE       (-716)
72 #define DISPID_AMBIENT_PALETTE          (-726)
73 #define DISPID_AMBIENT_TRANSFERPRIORITY (-728)
74
75 #define DISPID_Name                     (-800)
76 #define DISPID_Delete                   (-801)
77 #define DISPID_Object                   (-802)
78 #define DISPID_Parent                   (-803)
79  
80 /* Reflected Window Message IDs */
81 #define OCM__BASE           (WM_USER+0x1c00)
82 #define OCM_COMMAND         (OCM__BASE + WM_COMMAND)
83
84 #define OCM_CTLCOLORBTN     (OCM__BASE + WM_CTLCOLORBTN)
85 #define OCM_CTLCOLOREDIT    (OCM__BASE + WM_CTLCOLOREDIT)
86 #define OCM_CTLCOLORDLG     (OCM__BASE + WM_CTLCOLORDLG)
87 #define OCM_CTLCOLORLISTBOX (OCM__BASE + WM_CTLCOLORLISTBOX)
88 #define OCM_CTLCOLORMSGBOX  (OCM__BASE + WM_CTLCOLORMSGBOX)
89 #define OCM_CTLCOLORSCROLLBAR   (OCM__BASE + WM_CTLCOLORSCROLLBAR)
90 #define OCM_CTLCOLORSTATIC  (OCM__BASE + WM_CTLCOLORSTATIC)
91
92 #define OCM_DRAWITEM        (OCM__BASE + WM_DRAWITEM)
93 #define OCM_MEASUREITEM     (OCM__BASE + WM_MEASUREITEM)
94 #define OCM_DELETEITEM      (OCM__BASE + WM_DELETEITEM)
95 #define OCM_VKEYTOITEM      (OCM__BASE + WM_VKEYTOITEM)
96 #define OCM_CHARTOITEM      (OCM__BASE + WM_CHARTOITEM)
97 #define OCM_COMPAREITEM     (OCM__BASE + WM_COMPAREITEM)
98 #define OCM_HSCROLL         (OCM__BASE + WM_HSCROLL)
99 #define OCM_VSCROLL         (OCM__BASE + WM_VSCROLL)
100 #define OCM_PARENTNOTIFY    (OCM__BASE + WM_PARENTNOTIFY)
101 #define OCM_NOTIFY            (OCM__BASE + WM_NOTIFY)
102
103
104 #endif /*  __WINE_OLECTL_H */
105
106