GLASS.IDL

#include <olectl.h> 
#include "DispIDs.h"
// Glass.idl : IDL source for Glass.dll
//

// This file will be processed by the MIDL tool to
// produce the type library (Glass.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";



[
object,
uuid(32F4F486-7F80-11D0-B835-00A0C911837F),
dual,
helpstring("IGlassControl Interface"),
pointer_default(unique)
]
interface IGlassControl : IDispatch
{
// properties
//
[propget, id(DISPID_GLASS_LINEWIDTH)]
HRESULT LineWidth([out, retval] long *plWidth);
[propput, id(DISPID_GLASS_LINEWIDTH)]
HRESULT LineWidth([in] long lWidth);
[propget, id(DISPID_GLASS_BRIGHTNESS)]
HRESULT Brightness([out, retval] long *plBrightness);
[propput, id(DISPID_GLASS_BRIGHTNESS)]
HRESULT Brightness([in] long lBrightness);
[propget, id(DISPID_GLASS_DYNAMICFADE)]
HRESULT DynamicFade([out, retval] long *plDynamicFade);
[propput, id(DISPID_GLASS_DYNAMICFADE)]
HRESULT DynamicFade([in] long lDynamicFade);
[propget, id(DISPID_GLASS_FADEINTERVAL)]
HRESULT FadeInterval([out, retval] long *plFadeInterval);
[propput, id(DISPID_GLASS_FADEINTERVAL)]
HRESULT FadeInterval([in] long lFadeInterval);
[propget, id(DISPID_GLASS_FREEZE)]
HRESULT Freeze([out, retval] long *plFreeze);
[propput, id(DISPID_GLASS_FREEZE)]
HRESULT Freeze([in] long lFreeze);
[propget, id(DISPID_GLASS_ENABLED)]
HRESULT Enabled([out, retval] long *plEnabled);
[propput, id(DISPID_GLASS_ENABLED)]
HRESULT Enabled([in] long lEnabled);

//methods
//
};
[
uuid(32F4F480-7F80-11D0-B835-00A0C911837F),
version(1.0),
helpstring("GlassControl 1.0 Type Library")
]
library GLASSLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");



[
uuid(234A2FA2-8039-11d0-B835-00A0C911837F),
helpstring("Event Interface for GlassControl")
]
dispinterface _GlassEvents
{
properties:
methods:
// for some reason OLE_XPOS_PIXELS AND OLE_YPOS_PIXELS cause a compile error
[id(DISPID_MOUSEDOWN)]
void OnMouseDown(short Button, short Shift, long x, long y);
[id(DISPID_MOUSEMOVE)]
void OnMouseMove(short Button, short Shift, long x, long y);
[id(DISPID_MOUSEUP)]
void OnMouseUp(short Button, short Shift, long x, long y);
};

[
uuid(32F4F485-7F80-11D0-B835-00A0C911837F),
helpstring("GlassControl Class")
]
coclass GlassControl
{
[default] interface IGlassControl;
[default,source] dispinterface _GlassEvents;
};
};