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

📄 atldice.idl

📁 控件的相用的实现利用MFC实现相拥的控件
💻 IDL
字号:
// AtlDice.idl : IDL source for AtlDice.dll
//

// This file will be processed by the MIDL tool to
// produce the type library (AtlDice.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";
#include "olectl.h"
	

	[
		object,
		uuid(D72B946A-328D-49BB-BF35-E5C1D31E904D),
		dual,
		helpstring("IAtlDiceObj Interface"),
		pointer_default(unique)
	]
	interface IAtlDiceObj : IDispatch
	{
		[id(1), helpstring("method RollDice")] HRESULT RollDice();
		[propget, id(2), helpstring("property m_nDiceColor")] HRESULT m_nDiceColor([out, retval] short *pVal);
		[propput, id(2), helpstring("property m_nDiceColor")] HRESULT m_nDiceColor([in] short newVal);
		[propget, id(3), helpstring("property TimestoRoll")] HRESULT TimestoRoll([out, retval] short *pVal);
		[propput, id(3), helpstring("property TimestoRoll")] HRESULT TimestoRoll([in] short newVal);
	};

[
	uuid(075D4D33-0329-4340-89CA-66DB897C3FF5),
	version(1.0),
	helpstring("AtlDice 1.0 Type Library")
]
library ATLDICELib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(B7598D2B-830C-41BE-AB27-9765EE3410F2),
		helpstring("_IAtlDiceObjEvents Interface")
	]
	dispinterface _IAtlDiceObjEvents
	{
		properties:
		methods:
	};

	[
		uuid(6E53417D-6193-436F-8DD1-29D239643CEA),
		helpstring("AtlDiceObj Class")
	]
	coclass AtlDiceObj
	{
		[default] interface IAtlDiceObj;
		[default, source] dispinterface _IAtlDiceObjEvents;
	};

	[
		uuid(772C9482-7C08-4BED-ACC8-46D65805A5FD),
		helpstring("Atldiceprop Class")
	]
	coclass Atldiceprop
	{
		interface IUnknown;
	};
};

⌨️ 快捷键说明

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