www.pudn.com > CYDEMO.zip > _xpcmdbutton.cpp, change:2006-06-22,size:2134b


// 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 "_xpcmdbutton.h" 
 
// Dispatch interfaces referenced by this interface 
#include "font.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// C_xpcmdbutton 
 
IMPLEMENT_DYNCREATE(C_xpcmdbutton, CWnd) 
 
///////////////////////////////////////////////////////////////////////////// 
// C_xpcmdbutton properties 
 
///////////////////////////////////////////////////////////////////////////// 
// C_xpcmdbutton operations 
 
BOOL C_xpcmdbutton::GetEnabled() 
{ 
	BOOL result; 
	InvokeHelper(DISPID_ENABLED, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL); 
	return result; 
} 
 
void C_xpcmdbutton::SetEnabled(BOOL bNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BOOL; 
	InvokeHelper(DISPID_ENABLED, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 bNewValue); 
} 
 
long C_xpcmdbutton::GetState() 
{ 
	long result; 
	InvokeHelper(0x68030000, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
	return result; 
} 
 
void C_xpcmdbutton::SetState(long nNewValue) 
{ 
	static BYTE parms[] = 
		VTS_I4; 
	InvokeHelper(0x68030000, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 nNewValue); 
} 
 
CString C_xpcmdbutton::GetCaption() 
{ 
	CString result; 
	InvokeHelper(DISPID_CAPTION, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
	return result; 
} 
 
void C_xpcmdbutton::SetCaption(LPCTSTR lpszNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BSTR; 
	InvokeHelper(DISPID_CAPTION, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 lpszNewValue); 
} 
 
COleFont C_xpcmdbutton::GetFont() 
{ 
	LPDISPATCH pDispatch; 
	InvokeHelper(DISPID_FONT, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL); 
	return COleFont(pDispatch); 
} 
 
void C_xpcmdbutton::SetRefFont(LPDISPATCH newValue) 
{ 
	static BYTE parms[] = 
		VTS_DISPATCH; 
	InvokeHelper(DISPID_FONT, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms, 
		 newValue); 
}