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

📄 ocxtest.odl

📁 在网页中调用VC写的对话框?谕持械饔肰C写的对话框?谕持械饔肰C写的对话框
💻 ODL
字号:
// ocxtest.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 (ocxtest.tlb) that will become a resource in
// ocxtest.ocx.

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

[ uuid(BE64B4FF-AFF1-4DE3-9324-D59B58F6D59E), version(1.0),
  helpfile("ocxtest.hlp"),
  helpstring("ocxtest ActiveX Control module"),
  control ]
library OCXTESTLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for COcxtestCtrl

	[ uuid(C475316B-4C89-41AE-8ED0-9BAA84633C7D),
	  helpstring("Dispatch interface for Ocxtest Control"), hidden ]
	dispinterface _DOcxtest
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(COcxtestCtrl)
			//}}AFX_ODL_PROP

		methods:
			// NOTE - ClassWizard will maintain method information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_METHOD(COcxtestCtrl)
			[id(1)] void testocx();
			//}}AFX_ODL_METHOD

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

	//  Event dispatch interface for COcxtestCtrl

	[ uuid(E0918130-FB43-4F1E-B450-636C5F7BCF29),
	  helpstring("Event interface for Ocxtest Control") ]
	dispinterface _DOcxtestEvents
	{
		properties:
			//  Event interface has no properties

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

	//  Class information for COcxtestCtrl

	[ uuid(4FCAE43F-9212-4ECE-A804-D25D792CCEE1),
	  helpstring("Ocxtest Control"), control ]
	coclass Ocxtest
	{
		[default] dispinterface _DOcxtest;
		[default, source] dispinterface _DOcxtestEvents;
	};


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

⌨️ 快捷键说明

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