SmsManager/CDMSChart.h
2025-01-14 10:46:18 +08:00

542 lines
14 KiB
C++

// CDMSChart.h : 由 Microsoft Visual C++ 创建的 ActiveX 控件包装器类的声明
#pragma once
/////////////////////////////////////////////////////////////////////////////
// CDMSChart
class CDMSChart : public CWnd
{
protected:
DECLARE_DYNCREATE(CDMSChart)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x3A2B370C, 0xBA0A, 0x11D1, { 0xB1, 0x37, 0x0, 0x0, 0xF8, 0x75, 0x3F, 0x5D } };
return clsid;
}
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext = nullptr)
{
return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID);
}
BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd,
UINT nID, CFile* pPersist = nullptr, BOOL bStorage = FALSE,
BSTR bstrLicKey = nullptr)
{
return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
pPersist, bStorage, bstrLicKey);
}
// 特性
public:
// 操作
public:
BOOL get_AutoIncrement()
{
BOOL result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
return result;
}
void put_AutoIncrement(BOOL newValue)
{
static BYTE parms[] = VTS_BOOL ;
InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
BOOL get_RandomFill()
{
BOOL result;
InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
return result;
}
void put_RandomFill(BOOL newValue)
{
static BYTE parms[] = VTS_BOOL ;
InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
long get_chartType()
{
long result;
InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
return result;
}
void put_chartType(long newValue)
{
static BYTE parms[] = VTS_I4 ;
InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
short get_Column()
{
short result;
InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, nullptr);
return result;
}
void put_Column(short newValue)
{
static BYTE parms[] = VTS_I2 ;
InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
short get_ColumnCount()
{
short result;
InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, nullptr);
return result;
}
void put_ColumnCount(short newValue)
{
static BYTE parms[] = VTS_I2 ;
InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
CString get_ColumnLabel()
{
CString result;
InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
return result;
}
void put_ColumnLabel(LPCTSTR newValue)
{
static BYTE parms[] = VTS_BSTR ;
InvokeHelper(0x6, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
short get_ColumnLabelCount()
{
short result;
InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, nullptr);
return result;
}
void put_ColumnLabelCount(short newValue)
{
static BYTE parms[] = VTS_I2 ;
InvokeHelper(0x7, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
short get_ColumnLabelIndex()
{
short result;
InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, nullptr);
return result;
}
void put_ColumnLabelIndex(short newValue)
{
static BYTE parms[] = VTS_I2 ;
InvokeHelper(0x8, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
CString get_Data()
{
CString result;
InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
return result;
}
void put_Data(LPCTSTR newValue)
{
static BYTE parms[] = VTS_BSTR ;
InvokeHelper(0x9, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
CString get_FootnoteText()
{
CString result;
InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
return result;
}
void put_FootnoteText(LPCTSTR newValue)
{
static BYTE parms[] = VTS_BSTR ;
InvokeHelper(0xa, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
BOOL get_Repaint()
{
BOOL result;
InvokeHelper(0xb, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
return result;
}
void put_Repaint(BOOL newValue)
{
static BYTE parms[] = VTS_BOOL ;
InvokeHelper(0xb, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
short get_Row()
{
short result;
InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, nullptr);
return result;
}
void put_Row(short newValue)
{
static BYTE parms[] = VTS_I2 ;
InvokeHelper(0xc, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
short get_RowCount()
{
short result;
InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, nullptr);
return result;
}
void put_RowCount(short newValue)
{
static BYTE parms[] = VTS_I2 ;
InvokeHelper(0xd, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
CString get_RowLabel()
{
CString result;
InvokeHelper(0xe, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
return result;
}
void put_RowLabel(LPCTSTR newValue)
{
static BYTE parms[] = VTS_BSTR ;
InvokeHelper(0xe, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
short get_RowLabelCount()
{
short result;
InvokeHelper(0xf, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, nullptr);
return result;
}
void put_RowLabelCount(short newValue)
{
static BYTE parms[] = VTS_I2 ;
InvokeHelper(0xf, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
short get_RowLabelIndex()
{
short result;
InvokeHelper(0x10, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, nullptr);
return result;
}
void put_RowLabelIndex(short newValue)
{
static BYTE parms[] = VTS_I2 ;
InvokeHelper(0x10, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
short get_SeriesColumn()
{
short result;
InvokeHelper(0x11, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, nullptr);
return result;
}
void put_SeriesColumn(short newValue)
{
static BYTE parms[] = VTS_I2 ;
InvokeHelper(0x11, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
long get_SeriesType()
{
long result;
InvokeHelper(0x12, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
return result;
}
void put_SeriesType(long newValue)
{
static BYTE parms[] = VTS_I4 ;
InvokeHelper(0x12, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
BOOL get_ShowLegend()
{
BOOL result;
InvokeHelper(0x13, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
return result;
}
void put_ShowLegend(BOOL newValue)
{
static BYTE parms[] = VTS_BOOL ;
InvokeHelper(0x13, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
long get_DrawMode()
{
long result;
InvokeHelper(0x17, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
return result;
}
void put_DrawMode(long newValue)
{
static BYTE parms[] = VTS_I4 ;
InvokeHelper(0x17, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
long get_BorderStyle()
{
long result;
InvokeHelper(DISPID_BORDERSTYLE, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
return result;
}
void put_BorderStyle(long newValue)
{
static BYTE parms[] = VTS_I4 ;
InvokeHelper(DISPID_BORDERSTYLE, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
BOOL get_Enabled()
{
BOOL result;
InvokeHelper(DISPID_ENABLED, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
return result;
}
void put_Enabled(BOOL newValue)
{
static BYTE parms[] = VTS_BOOL ;
InvokeHelper(DISPID_ENABLED, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
long get_hWnd()
{
long result;
InvokeHelper(DISPID_HWND, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
return result;
}
LPDISPATCH get_Title()
{
LPDISPATCH result;
InvokeHelper(0x1a, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, nullptr);
return result;
}
LPDISPATCH get_Footnote()
{
LPDISPATCH result;
InvokeHelper(0x1b, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, nullptr);
return result;
}
CString get_TitleText()
{
CString result;
InvokeHelper(0x1c, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
return result;
}
void put_TitleText(LPCTSTR newValue)
{
static BYTE parms[] = VTS_BSTR ;
InvokeHelper(0x1c, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
BOOL get_Stacking()
{
BOOL result;
InvokeHelper(0x1d, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
return result;
}
void put_Stacking(BOOL newValue)
{
static BYTE parms[] = VTS_BOOL ;
InvokeHelper(0x1d, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
long get_TextLengthType()
{
long result;
InvokeHelper(0x1e, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
return result;
}
void put_TextLengthType(long newValue)
{
static BYTE parms[] = VTS_I4 ;
InvokeHelper(0x1e, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
BOOL get_AllowSelections()
{
BOOL result;
InvokeHelper(0x20, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
return result;
}
void put_AllowSelections(BOOL newValue)
{
static BYTE parms[] = VTS_BOOL ;
InvokeHelper(0x20, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
BOOL get_AllowSeriesSelection()
{
BOOL result;
InvokeHelper(0x21, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
return result;
}
void put_AllowSeriesSelection(BOOL newValue)
{
static BYTE parms[] = VTS_BOOL ;
InvokeHelper(0x21, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
BOOL get_AllowDynamicRotation()
{
BOOL result;
InvokeHelper(0x22, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
return result;
}
void put_AllowDynamicRotation(BOOL newValue)
{
static BYTE parms[] = VTS_BOOL ;
InvokeHelper(0x22, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
short get_ActiveSeriesCount()
{
short result;
InvokeHelper(0x23, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, nullptr);
return result;
}
LPDISPATCH get_Backdrop()
{
LPDISPATCH result;
InvokeHelper(0x24, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, nullptr);
return result;
}
LPDISPATCH get_Legend()
{
LPDISPATCH result;
InvokeHelper(0x26, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, nullptr);
return result;
}
LPDISPATCH get_DataGrid()
{
LPDISPATCH result;
InvokeHelper(0x27, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, nullptr);
return result;
}
LPDISPATCH get_Plot()
{
LPDISPATCH result;
InvokeHelper(0x28, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, nullptr);
return result;
}
BOOL get_AllowDithering()
{
BOOL result;
InvokeHelper(0x2b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
return result;
}
void put_AllowDithering(BOOL newValue)
{
static BYTE parms[] = VTS_BOOL ;
InvokeHelper(0x2b, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
BOOL get_DoSetCursor()
{
BOOL result;
InvokeHelper(0x2d, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
return result;
}
void put_DoSetCursor(BOOL newValue)
{
static BYTE parms[] = VTS_BOOL ;
InvokeHelper(0x2d, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
BOOL get_Chart3d()
{
BOOL result;
InvokeHelper(0x2f, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
return result;
}
VARIANT get_ChartData()
{
VARIANT result;
InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, nullptr);
return result;
}
void put_ChartData(VARIANT newValue)
{
static BYTE parms[] = VTS_VARIANT ;
InvokeHelper(0x0, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, &newValue);
}
long get_Chart()
{
long result;
InvokeHelper(0x48, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
return result;
}
long get_MousePointer()
{
long result;
InvokeHelper(0x4a, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
return result;
}
void put_MousePointer(long newValue)
{
static BYTE parms[] = VTS_I4 ;
InvokeHelper(0x4a, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
void AboutBox()
{
InvokeHelper(DISPID_ABOUTBOX, DISPATCH_METHOD, VT_EMPTY, nullptr, nullptr);
}
void Refresh()
{
InvokeHelper(DISPID_REFRESH, DISPATCH_METHOD, VT_EMPTY, nullptr, nullptr);
}
void EditPaste()
{
InvokeHelper(0x31, DISPATCH_METHOD, VT_EMPTY, nullptr, nullptr);
}
void EditCopy()
{
InvokeHelper(0x32, DISPATCH_METHOD, VT_EMPTY, nullptr, nullptr);
}
void Layout()
{
InvokeHelper(0x34, DISPATCH_METHOD, VT_EMPTY, nullptr, nullptr);
}
void ToDefaults()
{
InvokeHelper(0x35, DISPATCH_METHOD, VT_EMPTY, nullptr, nullptr);
}
void SelectPart(short part, short index1, short index2, short index3, short index4)
{
static BYTE parms[] = VTS_I2 VTS_I2 VTS_I2 VTS_I2 VTS_I2 ;
InvokeHelper(0x38, DISPATCH_METHOD, VT_EMPTY, nullptr, parms, part, index1, index2, index3, index4);
}
void GetSelectedPart(short * part, short * index1, short * index2, short * index3, short * index4)
{
static BYTE parms[] = VTS_PI2 VTS_PI2 VTS_PI2 VTS_PI2 VTS_PI2 ;
InvokeHelper(0x39, DISPATCH_METHOD, VT_EMPTY, nullptr, parms, part, index1, index2, index3, index4);
}
void TwipsToChartPart(long xVal, long yVal, short * part, short * index1, short * index2, short * index3, short * index4)
{
static BYTE parms[] = VTS_I4 VTS_I4 VTS_PI2 VTS_PI2 VTS_PI2 VTS_PI2 VTS_PI2 ;
InvokeHelper(0x3b, DISPATCH_METHOD, VT_EMPTY, nullptr, parms, xVal, yVal, part, index1, index2, index3, index4);
}
long get_OLEDragMode()
{
long result;
InvokeHelper(0x60e, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
return result;
}
void put_OLEDragMode(long newValue)
{
static BYTE parms[] = VTS_I4 ;
InvokeHelper(0x60e, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
long get_OLEDropMode()
{
long result;
InvokeHelper(0x60f, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
return result;
}
void put_OLEDropMode(long newValue)
{
static BYTE parms[] = VTS_I4 ;
InvokeHelper(0x60f, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
void OLEDrag()
{
InvokeHelper(0x610, DISPATCH_METHOD, VT_EMPTY, nullptr, nullptr);
}
LPUNKNOWN get_DataSource()
{
LPUNKNOWN result;
InvokeHelper(0x47, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, nullptr);
return result;
}
void putref_DataSource(LPUNKNOWN newValue)
{
static BYTE parms[] = VTS_UNKNOWN ;
InvokeHelper(0x47, DISPATCH_PROPERTYPUTREF, VT_EMPTY, nullptr, parms, newValue);
}
CString get_DataMember()
{
CString result;
InvokeHelper(0x4b, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
return result;
}
void put_DataMember(LPCTSTR newValue)
{
static BYTE parms[] = VTS_BSTR ;
InvokeHelper(0x4b, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
};