84 lines
1.9 KiB
C++
84 lines
1.9 KiB
C++
// 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 "rat.h"
|
|
|
|
// Dispatch interfaces referenced by this interface
|
|
#include "font.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CRat
|
|
|
|
IMPLEMENT_DYNCREATE(CRat, CWnd)
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CRat properties
|
|
|
|
short CRat::GetBorderStyle()
|
|
{
|
|
short result;
|
|
GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
|
|
return result;
|
|
}
|
|
|
|
void CRat::SetBorderStyle(short propVal)
|
|
{
|
|
SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
|
|
}
|
|
|
|
BOOL CRat::GetEnabled()
|
|
{
|
|
BOOL result;
|
|
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
|
|
return result;
|
|
}
|
|
|
|
void CRat::SetEnabled(BOOL propVal)
|
|
{
|
|
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
|
|
}
|
|
|
|
COleFont CRat::GetFont()
|
|
{
|
|
LPDISPATCH pDispatch;
|
|
GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
|
|
return COleFont(pDispatch);
|
|
}
|
|
|
|
void CRat::SetFont(LPDISPATCH propVal)
|
|
{
|
|
SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
|
|
}
|
|
|
|
CString CRat::GetCaption()
|
|
{
|
|
CString result;
|
|
GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
|
|
return result;
|
|
}
|
|
|
|
void CRat::SetCaption(LPCTSTR propVal)
|
|
{
|
|
SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
|
|
}
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CRat operations
|
|
|
|
void CRat::SetAdminTarget(LPCTSTR szMachineName, LPCTSTR szMetaTarget)
|
|
{
|
|
static BYTE parms[] =
|
|
VTS_BSTR VTS_BSTR;
|
|
InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
|
|
szMachineName, szMetaTarget);
|
|
}
|
|
|
|
void CRat::DoClick()
|
|
{
|
|
InvokeHelper(DISPID_DOCLICK, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
|
|
}
|