SmsManager/CVcColor.h

73 lines
1.7 KiB
C
Raw Normal View History

2025-01-14 10:46:18 +08:00
// CVcColor.h : <20><> Microsoft Visual C++ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ActiveX <20>ؼ<EFBFBD><D8BC><EFBFBD>װ<EFBFBD><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#pragma once
/////////////////////////////////////////////////////////////////////////////
// CVcColor
class CVcColor : public COleDispatchDriver
{
public:
CVcColor() {} // <20><><EFBFBD><EFBFBD> COleDispatchDriver Ĭ<>Ϲ<EFBFBD><CFB9><EFBFBD><ECBAAF>
CVcColor(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
CVcColor(const CVcColor& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
// <20><><EFBFBD><EFBFBD>
public:
// <20><><EFBFBD><EFBFBD>
public:
short get_Red()
{
short result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, nullptr);
return result;
}
void put_Red(short newValue)
{
static BYTE parms[] = VTS_I2 ;
InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
short get_Green()
{
short result;
InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, nullptr);
return result;
}
void put_Green(short newValue)
{
static BYTE parms[] = VTS_I2 ;
InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
short get_Blue()
{
short result;
InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, nullptr);
return result;
}
void put_Blue(short newValue)
{
static BYTE parms[] = VTS_I2 ;
InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
BOOL get_Automatic()
{
BOOL result;
InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
return result;
}
void put_Automatic(BOOL newValue)
{
static BYTE parms[] = VTS_BOOL ;
InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
void Set(short Red, short Green, short Blue)
{
static BYTE parms[] = VTS_I2 VTS_I2 VTS_I2 ;
InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, nullptr, parms, Red, Green, Blue);
}
};