📄 graphdisp.cpp
字号:
// 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 "graphdisp.h"
/////////////////////////////////////////////////////////////////////////////
// CGraphDisp
IMPLEMENT_DYNCREATE(CGraphDisp, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CGraphDisp properties
OLE_COLOR CGraphDisp::GetBackColor()
{
OLE_COLOR result;
GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
return result;
}
void CGraphDisp::SetBackColor(OLE_COLOR propVal)
{
SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
}
OLE_COLOR CGraphDisp::GetForeColor()
{
OLE_COLOR result;
GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
return result;
}
void CGraphDisp::SetForeColor(OLE_COLOR propVal)
{
SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
}
short CGraphDisp::GetVerticalScaleNum()
{
short result;
GetProperty(0x1, VT_I2, (void*)&result);
return result;
}
void CGraphDisp::SetVerticalScaleNum(short propVal)
{
SetProperty(0x1, VT_I2, propVal);
}
short CGraphDisp::GetHorizontalScaleNum()
{
short result;
GetProperty(0x2, VT_I2, (void*)&result);
return result;
}
void CGraphDisp::SetHorizontalScaleNum(short propVal)
{
SetProperty(0x2, VT_I2, propVal);
}
CString CGraphDisp::GetVerticalAxisName()
{
CString result;
GetProperty(0x3, VT_BSTR, (void*)&result);
return result;
}
void CGraphDisp::SetVerticalAxisName(LPCTSTR propVal)
{
SetProperty(0x3, VT_BSTR, propVal);
}
CString CGraphDisp::GetHorizontalAxisName()
{
CString result;
GetProperty(0x4, VT_BSTR, (void*)&result);
return result;
}
void CGraphDisp::SetHorizontalAxisName(LPCTSTR propVal)
{
SetProperty(0x4, VT_BSTR, propVal);
}
double CGraphDisp::GetTimeBegin()
{
double result;
GetProperty(0x5, VT_R8, (void*)&result);
return result;
}
void CGraphDisp::SetTimeBegin(double propVal)
{
SetProperty(0x5, VT_R8, propVal);
}
double CGraphDisp::GetTimeSpan()
{
double result;
GetProperty(0x6, VT_R8, (void*)&result);
return result;
}
void CGraphDisp::SetTimeSpan(double propVal)
{
SetProperty(0x6, VT_R8, propVal);
}
double CGraphDisp::GetVerticalMaxValue()
{
double result;
GetProperty(0x7, VT_R8, (void*)&result);
return result;
}
void CGraphDisp::SetVerticalMaxValue(double propVal)
{
SetProperty(0x7, VT_R8, propVal);
}
double CGraphDisp::GetVerticalMinValue()
{
double result;
GetProperty(0x8, VT_R8, (void*)&result);
return result;
}
void CGraphDisp::SetVerticalMinValue(double propVal)
{
SetProperty(0x8, VT_R8, propVal);
}
double CGraphDisp::GetMaxTimeSpan()
{
double result;
GetProperty(0x9, VT_R8, (void*)&result);
return result;
}
void CGraphDisp::SetMaxTimeSpan(double propVal)
{
SetProperty(0x9, VT_R8, propVal);
}
long CGraphDisp::GetDataLength()
{
long result;
GetProperty(0xa, VT_I4, (void*)&result);
return result;
}
void CGraphDisp::SetDataLength(long propVal)
{
SetProperty(0xa, VT_I4, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CGraphDisp operations
void CGraphDisp::UpdateGraph()
{
InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CGraphDisp::SetDispValue(double* p, long length)
{
static BYTE parms[] =
VTS_PR8 VTS_I4;
InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
p, length);
}
double CGraphDisp::GetMax(long length)
{
double result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0xd, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
length);
return result;
}
double CGraphDisp::GetMin(long length)
{
double result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0xe, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
length);
return result;
}
void CGraphDisp::AboutBox()
{
InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -