www.pudn.com > ToolBar_ATL.rar > KToolBar.idl


// KToolBar.idl : IDL source for KToolBar.dll 
// 
 
// This file will be processed by the MIDL tool to 
// produce the type library (KToolBar.tlb) and marshalling code. 
 
import "oaidl.idl"; 
import "ocidl.idl"; 
#include "olectl.h" 
 
//State of Button 
// {F03A006A-0032-4132-B5C4-BF5D83B30551} 
[ 
	uuid(F03A006A-0032-4132-B5C4-BF5D83B30551), 
	helpstring("Enum Button State") 
] 
typedef enum tagBtnStateConst{ 
	BTN_NORMAL, 
	BTN_HOVER, 
	BTN_DOWN 
}BtnState; 
 
//Style of Button 
// {A652C8C0-1E23-44fc-ABAE-0864321523B1} 
[ 
	uuid(A652C8C0-1E23-44fc-ABAE-0864321523B1), 
	helpstring("Enum Button Style") 
] 
typedef enum tagBtnStyleConst{ 
	BTN_ICON, 
	BTN_SEPARATOR, 
	BTN_DROPDOWN 
}BTNSTYLE; 
 
//Mouse status when Moving across Button 
// {530F02F0-DB9D-4855-97BA-CF5CADB4A5A7} 
[ 
	uuid(530F02F0-DB9D-4855-97BA-CF5CADB4A5A7), 
	helpstring("Enum Button State") 
] 
typedef enum tagMouseStateConst{ 
	MOUSE_UP, 
	MOUSE_DOWN 
}MouseState; 
 
//Style of Toolbar 
// {0E1DBB28-52F9-4c89-B532-FE4C1337D941} 
[ 
	uuid(0E1DBB28-52F9-4c89-B532-FE4C1337D941), 
	helpstring("Enum Bar Style") 
] 
typedef enum tagBarStyleConst{ 
	BAR_16, 
	BAR_24, 
	BAR_32, 
	BAR_48 
}BarStyle; 
 
//Alignment of Button and its Caption 
// {68576CCA-7F32-4eb6-A665-DCEEB3518260} 
[ 
	uuid(68576CCA-7F32-4eb6-A665-DCEEB3518260), 
	helpstring("Enum Button Caption Alignment") 
] 
typedef enum tagAlignConst{ 
    IconLeftTextRight, 
    IconRightTextLeft, 
    IconTopTextBottom, 
    IconBottomTextTop 
}AlignConst; 
 
/* 
// {0931AD23-0786-4326-9E14-460CC0F3889F} 
[ 
	uuid(0931AD23-0786-4326-9E14-460CC0F3889F), 
	helpstring("Struct Buttons") 
] 
typedef struct tagTBarItem { 
	BSTR Caption; 
	BSTR Key; 
	BSTR ToolTips; 
	VARIANT_BOOL Enabled; 
	//AlignConst BtnAlignment; 
	BTNSTYLE Style; 
	BtnState State; 
}TBarItem; 
*/ 
 
// {0AEE9566-0B16-4c6c-81A0-F7560F0BFC03} 
	[ 
		object, 
		uuid(B6F22659-BFEF-4FFE-AD5C-0FCD4BE5DB3B), 
		dual, 
		helpstring("IKToolBarCtrl Interface"), 
		pointer_default(unique) 
	] 
	interface IKToolBarCtrl : IDispatch 
	{ 
		[propput, id(DISPID_ENABLED)] 
		HRESULT Enabled([in]VARIANT_BOOL vbool); 
		[propget, id(DISPID_ENABLED)] 
		HRESULT Enabled([out,retval]VARIANT_BOOL* pbool); 
		[propput, id(DISPID_MOUSEPOINTER)] 
		HRESULT MousePointer([in]long pointer); 
		[propget, id(DISPID_MOUSEPOINTER)] 
		HRESULT MousePointer([out, retval]long* ppointer); 
		[propputref, id(DISPID_MOUSEICON)] 
		HRESULT MouseIcon([in]IPictureDisp* pMouseIcon); 
		[propput, id(DISPID_MOUSEICON)] 
		HRESULT MouseIcon([in]IPictureDisp* pMouseIcon); 
		[propget, id(DISPID_MOUSEICON)] 
		HRESULT MouseIcon([out, retval]IPictureDisp** ppMouseIcon); 
		[propget, id(1), helpstring("property BtnEnabled")] HRESULT BtnEnabled([in] short Index, [out, retval] BOOL *pVal); 
		[propput, id(1), helpstring("property BtnEnabled")] HRESULT BtnEnabled([in] short Index, [in] BOOL newVal); 
		[propget, id(2), helpstring("property BtnStyle")] HRESULT BtnStyle([in] short Index, [out, retval] BTNSTYLE *pVal); 
		[propput, id(2), helpstring("property BtnStyle")] HRESULT BtnStyle([in] short Index, [in] BTNSTYLE newVal); 
		[propget, id(3), helpstring("property BtnIcon")] HRESULT BtnIcon([in] short Index, [out, retval] LPPICTUREDISP *pVal); 
		[propput, id(3), helpstring("property BtnIcon")] HRESULT BtnIcon([in] short Index, [in] LPPICTUREDISP newVal); 
		[propget, id(4), helpstring("property Value")] HRESULT Value([out, retval] short *pVal); 
		[propput, id(4), helpstring("property Value")] HRESULT Value([in] short newVal); 
		[propget, id(5), helpstring("property BtnCnt")] HRESULT BtnCnt([out, retval] short *pVal); 
		[propput, id(5), helpstring("property BtnCnt")] HRESULT BtnCnt([in] short newVal); 
		[propget, id(6), helpstring("property BtnToolTips")] HRESULT BtnToolTips([in] int Index, [out, retval] BSTR *pVal); 
		[propput, id(6), helpstring("property BtnToolTips")] HRESULT BtnToolTips([in] int Index, [in] BSTR newVal); 
		[propget, id(7), helpstring("property BtnKey")] HRESULT BtnKey([in]int Index, [out, retval] BSTR *pVal); 
		[propput, id(7), helpstring("property BtnKey")] HRESULT BtnKey([in]int Index, [in] BSTR newVal); 
	}; 
 
[ 
	uuid(AE2B2C9E-39A5-4A86-BDBD-19AAB1F01FB9), 
	version(1.0), 
	helpstring("KToolBar 1.0 Type Library") 
] 
library KTOOLBARLib 
{ 
	importlib("stdole32.tlb"); 
	importlib("stdole2.tlb"); 
 
	[ 
		uuid(09D77C3F-447E-48DB-A0DE-217EBDC34917), 
		helpstring("_IKToolBarCtrlEvents Interface") 
	] 
	dispinterface _IKToolBarCtrlEvents 
	{ 
		properties: 
		methods: 
		[id(1), helpstring("method BtnClick")] HRESULT BtnClick(short Index); 
	}; 
 
	[ 
		uuid(757EED7B-762B-483C-82D4-8FC81FF43B9F), 
		helpstring("KToolBarCtrl Class") 
	] 
	coclass KToolBarCtrl 
	{ 
		[default] interface IKToolBarCtrl; 
		[default, source] dispinterface _IKToolBarCtrlEvents; 
	}; 
 
	[ 
		uuid(68860F76-127D-4379-B562-6B297414A886), 
		helpstring("_IKToolBarPpgGeneralEvents Interface") 
	] 
	dispinterface _IKToolBarPpgGeneralEvents 
	{ 
		properties: 
		methods: 
	}; 
 
	[ 
		uuid(8CD1F647-E9FD-45AA-8DE4-6F0A17850953), 
		helpstring("KToolBarPpgGeneral Class") 
	] 
	coclass KToolBarPpgGeneral 
	{ 
		interface IUnknown; 
		[default, source] dispinterface _IKToolBarPpgGeneralEvents; 
	}; 
};