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

📄 clock.odl

📁 深入浅出Visual C++入门进阶与应用实例 随书光盘 作者 何志丹
💻 ODL
字号:
// clock.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 (clock.tlb) that will become a resource in
// clock.ocx.

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

[ uuid(6F70AEA2-75E8-493B-AEAF-7871BD72944D), version(1.0),
  helpfile("clock.hlp"),
  helpstring("clock ActiveX Control module"),
  control ]
library CLOCKLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CClockCtrl

	[ uuid(0B14FD32-F421-4B38-B958-A00E5EBB652F),
	  helpstring("Dispatch interface for Clock Control"), hidden ]
	dispinterface _DClock
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CClockCtrl)
			[id(1)] long crBkColor;
			[id(2)] long crHourPointerColor;
			[id(3)] long crMinutePointerColor;
			[id(4)] long crSecondPointerColor;
			[id(5)] long crScaleColor;
			//}}AFX_ODL_PROP

		methods:
			// NOTE - ClassWizard will maintain method information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_METHOD(CClockCtrl)
			[id(6)] boolean SetAlarmClock(short nHour, short nMinute, short nSecond);
			//}}AFX_ODL_METHOD

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

	//  Event dispatch interface for CClockCtrl

	[ uuid(CEBF0022-05E8-47CF-902A-2F35F459D414),
	  helpstring("Event interface for Clock Control") ]
	dispinterface _DClockEvents
	{
		properties:
			//  Event interface has no properties

		methods:
			// NOTE - ClassWizard will maintain event information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_EVENT(CClockCtrl)
			[id(1)] void TimeEnd();
			//}}AFX_ODL_EVENT
	};

	//  Class information for CClockCtrl

	[ uuid(12D53C7A-F9E0-41A0-B661-F522BD023563),
	  helpstring("Clock Control"), control ]
	coclass Clock
	{
		[default] dispinterface _DClock;
		[default, source] dispinterface _DClockEvents;
	};


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

⌨️ 快捷键说明

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