📄 curvearray.cpp
字号:
// CurveArray.cpp: implementation of the CCurveArray class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "welldataprocess.h"
#include "CurveArray.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CCurveArray::CCurveArray()
{
}
CCurveArray::~CCurveArray()
{
}
void CCurveArray::Draw(CDC *pDC)
{
int nCount = GetSize();
for (int i=0;i<nCount;i++)
(*this)[i]->Draw (pDC);
}
CCurveUnit* CCurveArray::HitTest(CPoint point)
{
int nCount = GetSize();
int i;
for(i = 0; i < nCount; i ++)
{
(*this)[i]->m_bSelect = FALSE;
}
for (i=0;i<nCount;i++)
{
if ((*this)[i]->HitTest (point))
return (*this)[i];
}
return NULL;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -