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

📄 sam211.odl

📁 制作VC控件教程
💻 ODL
字号:
// Sam211.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 (Sam211.tlb) that will become a resource in
// Sam211.ocx.

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

[ uuid(A9B58A1B-3124-421A-87C9-01E9F1B9DDE5), version(1.0),
  helpfile("Sam211.hlp"),
  helpstring("Sam211 ActiveX Control module"),
  control ]
library SAM211Lib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CSam_windowCtrl

	[ uuid(BC379F6B-3ED9-4207-893F-F2514D5D9FFD),
	  helpstring("Dispatch interface for Sam_window Control"), hidden ]
	dispinterface _DSam_window
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CSam_windowCtrl)
			[id(1)] OLE_COLOR TextColor;
			//}}AFX_ODL_PROP

		methods:
			// NOTE - ClassWizard will maintain method information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_METHOD(CSam_windowCtrl)
			[id(2)] void SetMertial(BSTR pszName, BSTR pszBirth, BSTR pszClass);
			//}}AFX_ODL_METHOD

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

	//  Event dispatch interface for CSam_windowCtrl

	[ uuid(FF7D03EF-19F1-48A5-8845-054A5B5A48AF),
	  helpstring("Event interface for Sam_window Control") ]
	dispinterface _DSam_windowEvents
	{
		properties:
			//  Event interface has no properties

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

	//  Class information for CSam_windowCtrl

	[ uuid(294EA727-3358-48FE-A240-E33035F2F70A),
	  helpstring("Sam_window Control"), control ]
	coclass Sam_window
	{
		[default] dispinterface _DSam_window;
		[default, source] dispinterface _DSam_windowEvents;
	};

	//  Primary dispatch interface for CSam_nowindowCtrl

	[ uuid(C5E04B1A-2888-4756-8C33-FD178B79E698),
	  helpstring("Dispatch interface for Sam_nowindow Control"), hidden ]
	dispinterface _DSam_nowindow
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CSam_nowindowCtrl)
			//}}AFX_ODL_PROP

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

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

	//  Event dispatch interface for CSam_nowindowCtrl

	[ uuid(E0506FD3-2F78-4D36-89D4-F519AB803D73),
	  helpstring("Event interface for Sam_nowindow Control") ]
	dispinterface _DSam_nowindowEvents
	{
		properties:
			//  Event interface has no properties

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

	//  Class information for CSam_nowindowCtrl

	[ uuid(1D60A2EC-4A0B-4466-886A-C3C144F94C6C),
	  helpstring("Sam_nowindow Control"), control ]
	coclass Sam_nowindow
	{
		[default] dispinterface _DSam_nowindow;
		[default, source] dispinterface _DSam_nowindowEvents;
	};

	//  Primary dispatch interface for CSam_editwindowCtrl

	[ uuid(71AEDF8A-1631-4C2F-8F50-231A2CD7B41D),
	  helpstring("Dispatch interface for Sam_editwindow Control"), hidden ]
	dispinterface _DSam_editwindow
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CSam_editwindowCtrl)
			//}}AFX_ODL_PROP

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

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

	//  Event dispatch interface for CSam_editwindowCtrl

	[ uuid(6012B0D4-F33E-4987-9E13-43D101254AA1),
	  helpstring("Event interface for Sam_editwindow Control") ]
	dispinterface _DSam_editwindowEvents
	{
		properties:
			//  Event interface has no properties

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

	//  Class information for CSam_editwindowCtrl

	[ uuid(4525E9B9-DF6A-4D68-A915-5E663B614D58),
	  helpstring("Sam_editwindow Control"), control ]
	coclass Sam_editwindow
	{
		[default] dispinterface _DSam_editwindow;
		[default, source] dispinterface _DSam_editwindowEvents;
	};


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

⌨️ 快捷键说明

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