📄 colorarray.cpp
字号:
// ColorArray.cpp: implementation of the CColorArray class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "welldataprocess.h"
#include "ColorArray.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CColorArray::CColorArray()
{
}
CColorArray::~CColorArray()
{
}
void CColorArray::Draw(CDC *pDC)
{
int nCount = GetSize();
for(int i = 0 ; i < nCount; i ++)
{
(*this)[i]->Draw (pDC);
}
}
int CColorArray::AddColorUnit(float fLeftValue, float fRightValue, CRect rect)
{
CColorUnit *pUnit = new CColorUnit(fLeftValue, fRightValue, rect);
return Add(pUnit);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -