www.pudn.com > PropBrowser_demo.zip > PropBrowser.idl


#include 
// PropBrowser.idl : IDL source for PropBrowser.dll 
// 
 
// This file will be processed by the MIDL tool to 
// produce the type library (PropBrowser.tlb) and marshalling code. 
 
import "oaidl.idl"; 
import "ocidl.idl"; 
 
	 
 
[ 
	uuid(12892D01-03FF-11D3-84F5-00C04FD1E2CA), 
	version(1.0), 
	helpstring("PropBrowser 1.0 Type Library") 
] 
library PROPBROWSERLib 
{ 
	importlib("stdole32.tlb"); 
	importlib("stdole2.tlb"); 
	typedef [v1_enum] enum  
	{ 
	sSolid				= 0, 
	sTransparent		= 1, 
	sHorizontalLine		= 2, 
	sVerticalLine		= 3 
	} cDemoFillStyles; 
	[ 
		object, 
		uuid(12892D10-03FF-11D3-84F5-00C04FD1E2CA), 
		dual, 
		helpstring("IPBDemoCtrl Interface"), 
		pointer_default(unique) 
	] 
	interface IPBDemoCtrl : IDispatch 
	{ 
		[propget, id(1), helpstring("property Text")] HRESULT Text([out, retval] BSTR *pVal); 
		[propput, id(1), helpstring("property Text")] HRESULT Text([in] BSTR newVal); 
 
		[propget, id(2), helpstring("property Number")] HRESULT Number([out, retval] long *pVal); 
		[propput, id(2), helpstring("property Number")] HRESULT Number([in] long newVal); 
 
		[propget, id(3), helpstring("property TextColor")] HRESULT TextColor([out, retval] OLE_COLOR *pVal); 
		[propput, id(3), helpstring("property TextColor")] HRESULT TextColor([in] OLE_COLOR newVal); 
		[propget, id(4), helpstring("property Font")] HRESULT Font([out, retval] IFontDisp* *pVal); 
		[propput, id(4), helpstring("property Font")] HRESULT Font([in] IFontDisp* newVal); 
		[propputref, id(4), helpstring("property Font")] HRESULT Font([in] IFontDisp* newVal); 
		[propget, id(5), helpstring("property Picture")] HRESULT Picture([out, retval] IPictureDisp* *pVal); 
		[propput, id(5), helpstring("property Picture")] HRESULT Picture([in] IPictureDisp* newVal); 
		[propputref, id(5), helpstring("property Picture")] HRESULT Picture([in] IPictureDisp* newVal); 
		[propget, id(6), helpstring("property Appearance")] HRESULT Appearance([out, retval] short *pVal); 
		[propput, id(6), helpstring("property Appearance")] HRESULT Appearance([in] short newVal); 
		[propget, id(7), helpstring("property FillStyle")] HRESULT FillStyle([out, retval] cDemoFillStyles *pVal); 
		[propput, id(7), helpstring("property FillStyle")] HRESULT FillStyle([in] cDemoFillStyles newVal); 
		[propget, id(8), helpstring("property Enabled")] HRESULT Enabled([out, retval] VARIANT_BOOL *pVal); 
		[propput, id(8), helpstring("property Enabled")] HRESULT Enabled([in] VARIANT_BOOL newVal); 
 
	}; 
	[ 
		uuid(12892D11-03FF-11D3-84F5-00C04FD1E2CA), 
		helpstring("PBDemoCtrl Class") 
	] 
	coclass PBDemoCtrl 
	{ 
		[default] interface IPBDemoCtrl; 
	}; 
	 
 
	[ 
		uuid(6D52C29F-0459-11D3-87AE-00A02472FFC8), 
		helpstring("DemoCtrlPage Class") 
	] 
	coclass DemoCtrlPage 
	{ 
		interface IUnknown; 
	}; 
};