⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 activeclock.odl

📁 《Visual C++ Bible》或者说是《Visual C++ 宝典》的对应的源码文件
💻 ODL
字号:
// ActiveClock.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 (ActiveClock.tlb) that will become a resource in
// ActiveClock.ocx.

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

[ uuid(616AF323-D5AA-11D0-B719-00C0A83735D8), version(1.0),
  helpfile("ActiveClock.hlp"),
  helpstring("ActiveClock ActiveX Control module"),
  control ]
library ACTIVECLOCKLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CActiveClockCtrl

	[ uuid(616AF324-D5AA-11D0-B719-00C0A83735D8),
	  helpstring("Dispatch interface for ActiveClock Control"), hidden ]
	dispinterface _DActiveClock
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CActiveClockCtrl)
			[id(DISPID_BACKCOLOR), bindable, requestedit] OLE_COLOR BackColor;
			//}}AFX_ODL_PROP

		methods:
			// NOTE - ClassWizard will maintain method information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_METHOD(CActiveClockCtrl)
			//}}AFX_ODL_METHOD

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

	//  Event dispatch interface for CActiveClockCtrl

	[ uuid(616AF325-D5AA-11D0-B719-00C0A83735D8),
	  helpstring("Event interface for ActiveClock Control") ]
	dispinterface _DActiveClockEvents
	{
		properties:
			//  Event interface has no properties

		methods:
			// NOTE - ClassWizard will maintain event information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_EVENT(CActiveClockCtrl)
			//}}AFX_ODL_EVENT
	};

	//  Class information for CActiveClockCtrl

	[ uuid(616AF326-D5AA-11D0-B719-00C0A83735D8),
	  helpstring("ActiveClock Control"), control ]
	coclass ActiveClock
	{
		[default] dispinterface _DActiveClock;
		[default, source] dispinterface _DActiveClockEvents;
	};


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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -