ActiveX

         

MyCtrl.odl


// MyCtrl.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 (MyCtrl.tlb) that will become a resource in

// MyCtrl.ocx.

#include <olectl.h>

#include <idispids.h>

[ uuid(49E2F37B-B48D-11D3-A2B0-00A0C955FA9E), version(1.0),

helpfile("MyCtrl.hlp"),

helpstring("MyCtrl ActiveX Control module"),

control ]

library MYCTRLLib

{

importlib(STDOLE_TLB);

importlib(STDTYPE_TLB);

// Primary dispatch interface for CMyCtrlCtrl

[ uuid(49E2F37D-B48D-11D3-A2B0-00A0C955FA9E),



helpstring("Dispatch interface for MyCtrl Control"), hidden ]

dispinterface _DMyCtrl

{

properties:

// NOTE - ClassWizard will maintain property information here.

// Use extreme caution when editing this section.

//{{AFX_ODL_PROP(CMyCtrlCtrl)

[id(1)] short Shape;

[id(0)] short _Shape;

[id(2)] boolean Selected;

[id(DISPID_FORECOLOR), bindable, requestedit] OLE_COLOR ForeColor;

[id(3)] OLE_COLOR SelectColor;

[id(DISPID_CAPTION), bindable, requestedit] BSTR Caption;

[id(DISPID_FONT), bindable] IFontDisp* Font;

[id(4)] OLE_COLOR TextColor;

[id(5)] long Sleep;

//}}AFX_ODL_PROP

methods:

// NOTE - ClassWizard will maintain method information here.

// Use extreme caution when editing this section.


//{{AFX_ODL_METHOD(CMyCtrlCtrl)

[id(6)] boolean DoChangeTimer();

//}}AFX_ODL_METHOD

[id(DISPID_ABOUTBOX)] void AboutBox();

};

// Event dispatch interface for CMyCtrlCtrl

[ uuid(49E2F37E-B48D-11D3-A2B0-00A0C955FA9E),

helpstring("Event interface for MyCtrl Control") ]

dispinterface _DMyCtrlEvents

{

properties:

// Event interface has no properties

methods:

// NOTE - ClassWizard will maintain event information here.

// Use extreme caution when editing this section.

//{{AFX_ODL_EVENT(CMyCtrlCtrl)

[id(1)] void Select(boolean IsSelected);

[id(2)] void Tick(long ltick);

//}}AFX_ODL_EVENT

};

// Class information for CMyCtrlCtrl

[ uuid(49E2F37F-B48D-11D3-A2B0-00A0C955FA9E),

helpstring("MyCtrl Control"), control ]

coclass MyCtrl

{

[default] dispinterface _DMyCtrl;

[default, source] dispinterface _DMyCtrlEvents;

};

//{{AFX_APPEND_ODL}}

//}}AFX_APPEND_ODL}}

};