www.pudn.com > test_vc_11.rar > headings.cpp


// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++ 
 
// NOTE: Do not modify the contents of this file.  If this class is regenerated by 
//  Microsoft Visual C++, your modifications will be overwritten. 
 
 
#include "stdafx.h" 
#include "headings.h" 
 
// Dispatch interfaces referenced by this interface 
#include "spreadsheet.h" 
#include "window.h" 
#include "heading.h" 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CHeadings properties 
 
///////////////////////////////////////////////////////////////////////////// 
// CHeadings operations 
 
LPDISPATCH CHeadings::GetApplication() 
{ 
	LPDISPATCH pDispatch; 
	InvokeHelper(0x60020000, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL); 
//	return CSpreadsheet(pDispatch); 
	return pDispatch; 
} 
 
CWindow CHeadings::GetParent() 
{ 
	LPDISPATCH pDispatch; 
	InvokeHelper(0x60020001, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL); 
	return CWindow(pDispatch); 
} 
 
long CHeadings::GetCount() 
{ 
	long result; 
	InvokeHelper(0x60020002, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
	return result; 
} 
 
CHeading CHeadings::GetItem(VARIANT* Index) 
{ 
	LPDISPATCH pDispatch; 
	static BYTE parms[] = 
		VTS_PVARIANT; 
	InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, parms, 
		Index); 
	return CHeading(pDispatch); 
}