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

📄 openglactivex.odl

📁 此代码主要用于汽车车身的优化
💻 ODL
字号:
// OpenGLActiveX.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 (OpenGLActiveX.tlb) that will become a resource in
// OpenGLActiveX.ocx.

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

[ uuid(687B4EE1-B75E-42F2-A8A4-6ED323F37775), version(1.0),
  helpfile("OpenGLActiveX.hlp"),
  helpstring("OpenGLActiveX ActiveX Control module"),
  control ]
library OPENGLACTIVEXLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for COpenGLActiveXCtrl

	[ uuid(B09AB552-BC38-4D39-8A6F-802B0E18DDD6),
	  helpstring("Dispatch interface for OpenGLActiveX Control"), hidden ]
	dispinterface _DOpenGLActiveX
	{	// COM对象
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(COpenGLActiveXCtrl)
			//}}AFX_ODL_PROP

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

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

	//  Event dispatch interface for COpenGLActiveXCtrl

	[ uuid(B688677A-1206-4F96-BD5C-B4701784C1ED),
	  helpstring("Event interface for OpenGLActiveX Control") ]
	dispinterface _DOpenGLActiveXEvents
	{	// COM对象,用于管理控件的事件
		properties:
			//  Event interface has no properties

		methods:
			// NOTE - ClassWizard will maintain event information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_EVENT(COpenGLActiveXCtrl)
			[id(1)] void LButtonDown(long mFlags, short x, short y);
			[id(2)] void InitOpenGL();
			[id(3)] void LButtonUp(long m_Flags, short x, short y);
			[id(4)] void ReDraw();
			[id(5)] void ReSize(short cx, short cy);
			[id(6)] void LMouseMove(short x, short y);
			//}}AFX_ODL_EVENT
	};

	//  Class information for COpenGLActiveXCtrl

	[ uuid(62F94FAE-F38F-4EE1-BBEE-BF56A6B1C3BE),
	  helpstring("OpenGLActiveX Control"), control ]
	coclass OpenGLActiveX
	{
		[default] dispinterface _DOpenGLActiveX;
		[default, source] dispinterface _DOpenGLActiveXEvents;
	};


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

⌨️ 快捷键说明

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