colorarray.cpp

来自「对测井数据显示、编辑、处理」· C++ 代码 · 共 43 行

CPP
43
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?