www.pudn.com > CYDEMO.zip > _button.cpp, change:2006-06-25,size:2543b


// 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 "_button.h" 
 
// Dispatch interfaces referenced by this interface 
#include "font.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// C_Button 
 
IMPLEMENT_DYNCREATE(C_Button, CWnd) 
 
///////////////////////////////////////////////////////////////////////////// 
// C_Button properties 
 
///////////////////////////////////////////////////////////////////////////// 
// C_Button operations 
 
COleFont C_Button::GetFont() 
{ 
	LPDISPATCH pDispatch; 
	InvokeHelper(0x68030003, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL); 
	return COleFont(pDispatch); 
} 
 
void C_Button::SetRefFont(LPDISPATCH newValue) 
{ 
	static BYTE parms[] = 
		VTS_DISPATCH; 
	InvokeHelper(0x68030003, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms, 
		 newValue); 
} 
 
unsigned long C_Button::GetForeColor() 
{ 
	unsigned long result; 
	InvokeHelper(0x68030002, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
	return result; 
} 
 
void C_Button::SetForeColor(unsigned long newValue) 
{ 
	static BYTE parms[] = 
		VTS_I4; 
	InvokeHelper(0x68030002, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 newValue); 
} 
 
CString C_Button::GetCaption() 
{ 
	CString result; 
	InvokeHelper(0x68030001, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
	return result; 
} 
 
void C_Button::SetCaption(LPCTSTR lpszNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BSTR; 
	InvokeHelper(0x68030001, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 lpszNewValue); 
} 
 
CString C_Button::GetMyToolTip() 
{ 
	CString result; 
	InvokeHelper(0x68030000, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
	return result; 
} 
 
void C_Button::SetMyToolTip(LPCTSTR lpszNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BSTR; 
	InvokeHelper(0x68030000, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 lpszNewValue); 
} 
 
void C_Button::UserControl_Resize() 
{ 
	InvokeHelper(0x60030009, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void C_Button::PrintB(VARIANT* z) 
{ 
	static BYTE parms[] = 
		VTS_PVARIANT; 
	InvokeHelper(0x6003000f, DISPATCH_METHOD, VT_EMPTY, NULL, parms, 
		 z); 
} 
 
void C_Button::SetToolTip(BSTR* ToolTip) 
{ 
	static BYTE parms[] = 
		VTS_PBSTR; 
	InvokeHelper(0x60030010, DISPATCH_METHOD, VT_EMPTY, NULL, parms, 
		 ToolTip); 
}