// BWE.odl : type library source for ActiveX Control project.

// This file will be processed by the Make Type Library (mktyplib) tool to
// produce the type library (BWE.tlb) that will become a resource in
// BWE.ocx.

#include <olectl.h>
#include <idispids.h>

[ uuid(E1E72B91-BEC3-11D3-8485-0080C890AEF9), version(1.0),
  helpfile("BWE.hlp"),
  helpstring("BWE ActiveX Control module"),
  control ]
library BWELib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CBWECtrl

	[ uuid(E1E72B92-BEC3-11D3-8485-0080C890AEF9),
	  helpstring("Dispatch interface for BWE Control"), hidden ]
	dispinterface _DBWE
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CBWECtrl)
			[id(1)] short SizeX;
			[id(2)] short SizeY;
			[id(3)] short DotSize;
			[id(4)] short FromX;
			[id(5)] short FromY;
			[id(6)] short DotGap;
			[id(7)] boolean SelSet;
			[id(8)] short SelPosX1;
			[id(9)] short SelPosY1;
			[id(10)] short SelPosX2;
			[id(11)] short SelPosY2;
			[id(12)] short DrawMode;
			[id(13)] long MouseX;
			[id(14)] boolean Mode;
			[id(DISPID_FONT), bindable] IFontDisp* Font;
			[id(15)] short TextAlignment;
			//}}AFX_ODL_PROP

		methods:
			// NOTE - ClassWizard will maintain method information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_METHOD(CBWECtrl)
			[id(16)] void PaintSelection(short PaintMode);
			[id(17)] void Escape();
			[id(18)] boolean Copy();
			[id(19)] boolean Paste();
			[id(20)] BSTR GetData();
			[id(21)] boolean SetData(BSTR str);
			[id(22)] BSTR GetOvl();
			[id(23)] boolean SetOvl(BSTR str);
			[id(24)] void SetText(BSTR str);
			[id(25)] void MirrorSelection(boolean hor);
			[id(26)] void ImportPicture(IPictureDisp* pic);
			[id(27)] void TightBound();
			[id(28)] boolean RotateSelection(short angle);
			[id(29)] void Undo();
			[id(30)] void ResetUndo();
			[id(31)] void SaveUndo();
			[id(32)] void Redo();
			[id(33)] void Repaint();
			//}}AFX_ODL_METHOD

			[id(DISPID_ABOUTBOX)] void AboutBox();
	};

	//  Event dispatch interface for CBWECtrl

	[ uuid(E1E72B93-BEC3-11D3-8485-0080C890AEF9),
	  helpstring("Event interface for BWE Control") ]
	dispinterface _DBWEEvents
	{
		properties:
			//  Event interface has no properties

		methods:
			// NOTE - ClassWizard will maintain event information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_EVENT(CBWECtrl)
			[id(1)] void MouseBtnUp(OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
			//}}AFX_ODL_EVENT
	};

	//  Class information for CBWECtrl

	[ uuid(E1E72B77-BEC3-11D3-8485-0080C890AEF9),
	  helpstring("BWE Control"), control ]
	coclass BWE
	{
		[default] dispinterface _DBWE;
		[default, source] dispinterface _DBWEEvents;
	};


	//{{AFX_APPEND_ODL}}
	//}}AFX_APPEND_ODL}}
};
