📄 siartchart.cpp
字号:
SetProperty(0x30, VT_I2, propVal);
}
BOOL CSIARTChart::GetLeftAxisLabelOn()
{
BOOL result;
GetProperty(0x31, VT_BOOL, (void*)&result);
return result;
}
void CSIARTChart::SetLeftAxisLabelOn(BOOL propVal)
{
SetProperty(0x31, VT_BOOL, propVal);
}
unsigned long CSIARTChart::GetLeftAxisLabelColor()
{
unsigned long result;
GetProperty(0x32, VT_I4, (void*)&result);
return result;
}
void CSIARTChart::SetLeftAxisLabelColor(unsigned long propVal)
{
SetProperty(0x32, VT_I4, propVal);
}
long CSIARTChart::GetLegendTop()
{
long result;
GetProperty(0x33, VT_I4, (void*)&result);
return result;
}
void CSIARTChart::SetLegendTop(long propVal)
{
SetProperty(0x33, VT_I4, propVal);
}
long CSIARTChart::GetLegendLeft()
{
long result;
GetProperty(0x34, VT_I4, (void*)&result);
return result;
}
void CSIARTChart::SetLegendLeft(long propVal)
{
SetProperty(0x34, VT_I4, propVal);
}
long CSIARTChart::GetLegendRight()
{
long result;
GetProperty(0x35, VT_I4, (void*)&result);
return result;
}
void CSIARTChart::SetLegendRight(long propVal)
{
SetProperty(0x35, VT_I4, propVal);
}
long CSIARTChart::GetLegendBottom()
{
long result;
GetProperty(0x36, VT_I4, (void*)&result);
return result;
}
void CSIARTChart::SetLegendBottom(long propVal)
{
SetProperty(0x36, VT_I4, propVal);
}
BOOL CSIARTChart::GetSerieVisible()
{
BOOL result;
GetProperty(0x37, VT_BOOL, (void*)&result);
return result;
}
void CSIARTChart::SetSerieVisible(BOOL propVal)
{
SetProperty(0x37, VT_BOOL, propVal);
}
BOOL CSIARTChart::GetLeftAxisFontVert()
{
BOOL result;
GetProperty(0x38, VT_BOOL, (void*)&result);
return result;
}
void CSIARTChart::SetLeftAxisFontVert(BOOL propVal)
{
SetProperty(0x38, VT_BOOL, propVal);
}
long CSIARTChart::GetTimeAxisMode()
{
long result;
GetProperty(0x39, VT_I4, (void*)&result);
return result;
}
void CSIARTChart::SetTimeAxisMode(long propVal)
{
SetProperty(0x39, VT_I4, propVal);
}
BOOL CSIARTChart::GetLeftAxisTitleVert()
{
BOOL result;
GetProperty(0x3a, VT_BOOL, (void*)&result);
return result;
}
void CSIARTChart::SetLeftAxisTitleVert(BOOL propVal)
{
SetProperty(0x3a, VT_BOOL, propVal);
}
short CSIARTChart::GetLeftAxisTitleFontID()
{
short result;
GetProperty(0x3b, VT_I2, (void*)&result);
return result;
}
void CSIARTChart::SetLeftAxisTitleFontID(short propVal)
{
SetProperty(0x3b, VT_I2, propVal);
}
BOOL CSIARTChart::GetDisplayValueTips()
{
BOOL result;
GetProperty(0x3c, VT_BOOL, (void*)&result);
return result;
}
void CSIARTChart::SetDisplayValueTips(BOOL propVal)
{
SetProperty(0x3c, VT_BOOL, propVal);
}
BOOL CSIARTChart::GetLeftAxisHandle()
{
BOOL result;
GetProperty(0x3d, VT_BOOL, (void*)&result);
return result;
}
void CSIARTChart::SetLeftAxisHandle(BOOL propVal)
{
SetProperty(0x3d, VT_BOOL, propVal);
}
BOOL CSIARTChart::GetTimeAxisHandle()
{
BOOL result;
GetProperty(0x3e, VT_BOOL, (void*)&result);
return result;
}
void CSIARTChart::SetTimeAxisHandle(BOOL propVal)
{
SetProperty(0x3e, VT_BOOL, propVal);
}
short CSIARTChart::GetLeftAxisDecimal()
{
short result;
GetProperty(0x3f, VT_I2, (void*)&result);
return result;
}
void CSIARTChart::SetLeftAxisDecimal(short propVal)
{
SetProperty(0x3f, VT_I2, propVal);
}
short CSIARTChart::GetTimeAxisDecimal()
{
short result;
GetProperty(0x40, VT_I2, (void*)&result);
return result;
}
void CSIARTChart::SetTimeAxisDecimal(short propVal)
{
SetProperty(0x40, VT_I2, propVal);
}
CString CSIARTChart::GetTimeAxisTimeFormat()
{
CString result;
GetProperty(0x41, VT_BSTR, (void*)&result);
return result;
}
void CSIARTChart::SetTimeAxisTimeFormat(LPCTSTR propVal)
{
SetProperty(0x41, VT_BSTR, propVal);
}
double CSIARTChart::GetTimeAxisValue()
{
double result;
GetProperty(0x54, VT_R8, (void*)&result);
return result;
}
void CSIARTChart::SetTimeAxisValue(double propVal)
{
SetProperty(0x54, VT_R8, propVal);
}
double CSIARTChart::GetLeftAxisValue()
{
double result;
GetProperty(0x55, VT_R8, (void*)&result);
return result;
}
void CSIARTChart::SetLeftAxisValue(double propVal)
{
SetProperty(0x55, VT_R8, propVal);
}
unsigned long CSIARTChart::GetCursorColor()
{
unsigned long result;
GetProperty(0x42, VT_I4, (void*)&result);
return result;
}
void CSIARTChart::SetCursorColor(unsigned long propVal)
{
SetProperty(0x42, VT_I4, propVal);
}
short CSIARTChart::GetSerieLineWidth()
{
short result;
GetProperty(0x43, VT_I2, (void*)&result);
return result;
}
void CSIARTChart::SetSerieLineWidth(short propVal)
{
SetProperty(0x43, VT_I2, propVal);
}
BOOL CSIARTChart::GetDemoMode()
{
BOOL result;
GetProperty(0x44, VT_BOOL, (void*)&result);
return result;
}
void CSIARTChart::SetDemoMode(BOOL propVal)
{
SetProperty(0x44, VT_BOOL, propVal);
}
BOOL CSIARTChart::GetRealTimeChart()
{
BOOL result;
GetProperty(0x45, VT_BOOL, (void*)&result);
return result;
}
void CSIARTChart::SetRealTimeChart(BOOL propVal)
{
SetProperty(0x45, VT_BOOL, propVal);
}
short CSIARTChart::GetUpdateRate()
{
short result;
GetProperty(0x46, VT_I2, (void*)&result);
return result;
}
void CSIARTChart::SetUpdateRate(short propVal)
{
SetProperty(0x46, VT_I2, propVal);
}
short CSIARTChart::GetSerieTagID()
{
short result;
GetProperty(0x47, VT_I2, (void*)&result);
return result;
}
void CSIARTChart::SetSerieTagID(short propVal)
{
SetProperty(0x47, VT_I2, propVal);
}
double CSIARTChart::GetRealTimeSpan()
{
double result;
GetProperty(0x48, VT_R8, (void*)&result);
return result;
}
void CSIARTChart::SetRealTimeSpan(double propVal)
{
SetProperty(0x48, VT_R8, propVal);
}
CString CSIARTChart::GetDataSource()
{
CString result;
GetProperty(0x49, VT_BSTR, (void*)&result);
return result;
}
void CSIARTChart::SetDataSource(LPCTSTR propVal)
{
SetProperty(0x49, VT_BSTR, propVal);
}
CString CSIARTChart::GetHistDateFormat()
{
CString result;
GetProperty(0x4a, VT_BSTR, (void*)&result);
return result;
}
void CSIARTChart::SetHistDateFormat(LPCTSTR propVal)
{
SetProperty(0x4a, VT_BSTR, propVal);
}
CString CSIARTChart::GetTagConfigFile()
{
CString result;
GetProperty(0x4b, VT_BSTR, (void*)&result);
return result;
}
void CSIARTChart::SetTagConfigFile(LPCTSTR propVal)
{
SetProperty(0x4b, VT_BSTR, propVal);
}
BOOL CSIARTChart::GetDisplayNavigateButton()
{
BOOL result;
GetProperty(0x56, VT_BOOL, (void*)&result);
return result;
}
void CSIARTChart::SetDisplayNavigateButton(BOOL propVal)
{
SetProperty(0x56, VT_BOOL, propVal);
}
double CSIARTChart::GetTimeAxisMostLeftTime()
{
double result;
GetProperty(0x57, VT_R8, (void*)&result);
return result;
}
void CSIARTChart::SetTimeAxisMostLeftTime(double propVal)
{
SetProperty(0x57, VT_R8, propVal);
}
double CSIARTChart::GetTimeAxisMostRightTime()
{
double result;
GetProperty(0x58, VT_R8, (void*)&result);
return result;
}
void CSIARTChart::SetTimeAxisMostRightTime(double propVal)
{
SetProperty(0x58, VT_R8, propVal);
}
unsigned long CSIARTChart::GetNavigateButtonLineColor()
{
unsigned long result;
GetProperty(0x4c, VT_I4, (void*)&result);
return result;
}
void CSIARTChart::SetNavigateButtonLineColor(unsigned long propVal)
{
SetProperty(0x4c, VT_I4, propVal);
}
BOOL CSIARTChart::GetAutoSetMaxTime()
{
BOOL result;
GetProperty(0x59, VT_BOOL, (void*)&result);
return result;
}
void CSIARTChart::SetAutoSetMaxTime(BOOL propVal)
{
SetProperty(0x59, VT_BOOL, propVal);
}
BOOL CSIARTChart::GetAutoDisplayHistData()
{
BOOL result;
GetProperty(0x5a, VT_BOOL, (void*)&result);
return result;
}
void CSIARTChart::SetAutoDisplayHistData(BOOL propVal)
{
SetProperty(0x5a, VT_BOOL, propVal);
}
BOOL CSIARTChart::GetLegendShowCheckBox()
{
BOOL result;
GetProperty(0x4d, VT_BOOL, (void*)&result);
return result;
}
void CSIARTChart::SetLegendShowCheckBox(BOOL propVal)
{
SetProperty(0x4d, VT_BOOL, propVal);
}
unsigned long CSIARTChart::GetLegendCheckBoxColor()
{
unsigned long result;
GetProperty(0x4e, VT_I4, (void*)&result);
return result;
}
void CSIARTChart::SetLegendCheckBoxColor(unsigned long propVal)
{
SetProperty(0x4e, VT_I4, propVal);
}
short CSIARTChart::GetTimeAxisDelta()
{
short result;
GetProperty(0x5b, VT_I2, (void*)&result);
return result;
}
void CSIARTChart::SetTimeAxisDelta(short propVal)
{
SetProperty(0x5b, VT_I2, propVal);
}
short CSIARTChart::GetLeftAxisDelta()
{
short result;
GetProperty(0x5c, VT_I2, (void*)&result);
return result;
}
void CSIARTChart::SetLeftAxisDelta(short propVal)
{
SetProperty(0x5c, VT_I2, propVal);
}
BOOL CSIARTChart::GetLegendDisplaySerieValue()
{
BOOL result;
GetProperty(0x4f, VT_BOOL, (void*)&result);
return result;
}
void CSIARTChart::SetLegendDisplaySerieValue(BOOL propVal)
{
SetProperty(0x4f, VT_BOOL, propVal);
}
CString CSIARTChart::GetLegendSerieValueXTitle()
{
CString result;
GetProperty(0x50, VT_BSTR, (void*)&result);
return result;
}
void CSIARTChart::SetLegendSerieValueXTitle(LPCTSTR propVal)
{
SetProperty(0x50, VT_BSTR, propVal);
}
CString CSIARTChart::GetLegendSerieValueYTitle()
{
CString result;
GetProperty(0x51, VT_BSTR, (void*)&result);
return result;
}
void CSIARTChart::SetLegendSerieValueYTitle(LPCTSTR propVal)
{
SetProperty(0x51, VT_BSTR, propVal);
}
short CSIARTChart::GetLegendSerieValueXDecimal()
{
short result;
GetProperty(0x5d, VT_I2, (void*)&result);
return result;
}
void CSIARTChart::SetLegendSerieValueXDecimal(short propVal)
{
SetProperty(0x5d, VT_I2, propVal);
}
short CSIARTChart::GetLegendSerieValueYDecimal()
{
short result;
GetProperty(0x5e, VT_I2, (void*)&result);
return result;
}
void CSIARTChart::SetLegendSerieValueYDecimal(short propVal)
{
SetProperty(0x5e, VT_I2, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CSIARTChart operations
void CSIARTChart::AddXYPoint(short serie, double x, double y)
{
static BYTE parms[] =
VTS_I2 VTS_R8 VTS_R8;
InvokeHelper(0x5f, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
serie, x, y);
}
void CSIARTChart::Reset(short serie)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x60, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
serie);
}
void CSIARTChart::PrintChart()
{
InvokeHelper(0x61, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
BOOL CSIARTChart::SaveDataToFile(LPCTSTR fileName)
{
BOOL result;
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x62, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
fileName);
return result;
}
BOOL CSIARTChart::LoadDataFromFile(LPCTSTR fileName)
{
BOOL result;
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x63, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
fileName);
return result;
}
double CSIARTChart::GetCursorValue(short iSerieID)
{
double result;
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x64, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
iSerieID);
return result;
}
void CSIARTChart::AddXYArray(short serie, VARIANT* xArray, VARIANT* yArray)
{
static BYTE parms[] =
VTS_I2 VTS_PVARIANT VTS_PVARIANT;
InvokeHelper(0x65, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
serie, xArray, yArray);
}
BOOL CSIARTChart::ShowHistData(DATE startDateTime, DATE endDateTime)
{
BOOL result;
static BYTE parms[] =
VTS_DATE VTS_DATE;
InvokeHelper(0x66, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
startDateTime, endDateTime);
return result;
}
void CSIARTChart::ShowRealTimeData()
{
InvokeHelper(0x67, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CSIARTChart::AddSeriesToLegends()
{
InvokeHelper(0x68, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CSIARTChart::AboutBox()
{
InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -