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

📄 imageprocess.odl

📁 这是书上的代码
💻 ODL
字号:
// ImageProcess.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 (ImageProcess.tlb) that will become a resource in
// ImageProcess.ocx.

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

[ uuid(17A90564-A273-11D6-A0F2-0080C8EBBC7D), version(1.0),
  helpfile("ImageProcess.hlp"),
  helpstring("ImageProcess ActiveX Control module"),
  control ]
library IMAGEPROCESSLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CImageProcessCtrl

	[ uuid(17A90565-A273-11D6-A0F2-0080C8EBBC7D),
	  helpstring("Dispatch interface for ImageProcess Control"), hidden ]
	dispinterface _DImageProcess
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CImageProcessCtrl)
			[id(DISPID_APPEARANCE), bindable, requestedit] short Appearance;
			[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(CImageProcessCtrl)
			[id(1)] boolean Clear();
			[id(2)] boolean ReadBMPFile(BSTR strFileName);
			[id(3)] boolean ConvterToGrayBMP();
			[id(4)] boolean FilterMean();
			[id(5)] boolean SaveGrayBMPFile(BSTR strFileName);
			//}}AFX_ODL_METHOD

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

	//  Event dispatch interface for CImageProcessCtrl

	[ uuid(17A90566-A273-11D6-A0F2-0080C8EBBC7D),
	  helpstring("Event interface for ImageProcess Control") ]
	dispinterface _DImageProcessEvents
	{
		properties:
			//  Event interface has no properties

		methods:
			// NOTE - ClassWizard will maintain event information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_EVENT(CImageProcessCtrl)
			[id(DISPID_CLICK)] void Click();
			[id(DISPID_DBLCLICK)] void DblClick();
			//}}AFX_ODL_EVENT
	};

	//  Class information for CImageProcessCtrl

	[ uuid(17A90567-A273-11D6-A0F2-0080C8EBBC7D),
	  helpstring("ImageProcess Control"), control ]
	coclass ImageProcess
	{
		[default] dispinterface _DImageProcess;
		[default, source] dispinterface _DImageProcessEvents;
	};


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

⌨️ 快捷键说明

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