graphdataset.cpp
来自「利用VC++开发的OCX控件」· C++ 代码 · 共 57 行
CPP
57 行
//GraphDataSet.h - Version 3.0 (Brian Convery, May, 2001)
// GraphDataSet.cpp : implementation file
//
#include "stdafx.h"
#include "GraphDataSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGraphDataSet
CGraphDataSet::CGraphDataSet()
{
xPosition = 0;
yValue = 0;
}
CGraphDataSet::~CGraphDataSet()
{
}
BEGIN_MESSAGE_MAP(CGraphDataSet, CStatic)
//{{AFX_MSG_MAP(CGraphDataSet)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGraphDataSet message handlers
void CGraphDataSet::SetXPosition(int x)
{
xPosition = x;
}
void CGraphDataSet::SetYValue(int y)
{
yValue = y;
}
int CGraphDataSet::GetXData()
{
return xPosition;
}
int CGraphDataSet::GetYData()
{
return yValue;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?