1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
|
#define CALLCONV __stdcall
[
//Regenerate this, stolen from GetObj.odl
uuid(99AB80C4-5E19-4fd5-B3CA-5EF62FC3F765),
helpstring("My Ole Guid and interface definitions"),
lcid(0x0),
version(1.0)
]
library myole4ax
{
importlib("stdole2.tlb");
interface IOleInPlaceUIWindow;
// typedef struct
// {
// LONG Left;
// LONG Top;
// LONG Right;
// LONG Bottom;
// }RECT;
// typedef struct
// {
// LONG x;
// LONG y;
// }POINT;
// typedef struct
// {
// float x;
// float y;
// }POINTF;
// typedef struct {
// long hWnd;
// long message;
// long wParam;
// long lParam;
// long time;
// POINT pt;
// }MSG;
// typedef [public] RECT BORDERWIDTHS;
// typedef [public] long StructPtr;
// typedef struct
// {
// LONG cx;
// LONG cy;
// }SIZE;
typedef struct
{
long cb;
long fMDIApp;
OLE_HANDLE hwndFrame;
OLE_HANDLE haccel;
LONG cAccelEntries;
} OLEINPLACEFRAMEINFO;
// [
// uuid(00000000-0000-0000-C000-000000000046),
// odl,
// hidden
// ]
// interface IUnknownUnrestricted
// {
// long QueryInterface([in] long priid, [out,in] long* pvObj);
// long AddRef();
// long Release();
// };
[
uuid(00000114-0000-0000-C000-000000000046),
odl
]
interface IOleWindow : IUnknown
{
HRESULT GetWindow([out,retval] long *phwnd);
HRESULT ContextSensitiveHelp([in] long fEnterMode);
};
[
uuid(00000118-0000-0000-C000-000000000046),
odl
]
interface IOleClientSite : IUnknown
{
};
[
uuid(00000112-0000-0000-C000-000000000046),
odl
]
interface IOleObject : IUnknown
{
HRESULT SetClientSite([in] IOleClientSite *pClientSite);
HRESULT GetClientSite([out,retval] IOleClientSite **ppClientSite);
//Lots more.
};
[
uuid(B196B289-BAB4-101A-B69C-00AA00341D07),
odl
]
interface IOleControlSite : IUnknown
{
HRESULT OnControlInfoChanged();
HRESULT LockInPlaceActive([in] long fLock);
HRESULT GetExtendedControl([out,retval] IDispatch** ppDisp);
HRESULT TransformCoords([in] StructPtr pPtlHimetric, [in] StructPtr pPtfContainer, [in] long dwFlags);
long TranslateAccelerator([in] StructPtr lpmsg, [in] long grfModifiers);
HRESULT OnFocus([in] long fGotFocus);
HRESULT ShowPropertyFrame();
};
[
uuid(00000117-0000-0000-C000-000000000046),
odl
]
interface IOleInPlaceActiveObject : IOleWindow
{
long TranslateAccelerator([in] long lpmsg);
long OnFrameWindowActivate([in] long fActivate);
long OnDocWindowActivate([in] long fActivate);
long ResizeBorder([in] StructPtr prcBorder,
[in] IOleInPlaceUIWindow* pUIWindow,
[in] long fFrameWindow);
long EnableModeless([in] long fEnable);
};
[
uuid(00000115-0000-0000-C000-000000000046),
odl
]
interface IOleInPlaceUIWindow : IOleWindow
{
HRESULT GetBorder([in] StructPtr lprectBorder);
HRESULT RequestBorderSpace([in] StructPtr pborderwidths);
HRESULT SetBorderSpace([in] StructPtr pborderwidths);
HRESULT SetActiveObject([in] IOleInPlaceActiveObject *pActiveObject, [in] LPWSTR pszObjName);
};
[
uuid(00000116-0000-0000-C000-000000000046),
odl
]
interface IOleInPlaceFrame : IOleInPlaceUIWindow
{
//Not done, placeholder only
};
[
uuid(00000119-0000-0000-C000-000000000046),
odl
]
interface IOleInPlaceSite : IOleWindow
{
long CanInPlaceActivate();
HRESULT OnInPlaceActivate();
HRESULT OnUIActivate();
HRESULT GetWindowContext([out] IOleInPlaceFrame** ppFrame,
[out] IOleInPlaceUIWindow** ppDoc,
[in] StructPtr lprcPosRect,
[in] StructPtr lprcClipRect,
[in] StructPtr lpFrameInfo);
HRESULT Scroll([in] CURRENCY scrollExtant);
HRESULT OnUIDeactivate([in] long fUndoable);
HRESULT OnInPlaceDeactivate();
HRESULT DiscardUndoState();
HRESULT DeactivateAndUndo();
HRESULT OnPosRectChange([in] long lprcPosRect);
}
}
|