⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pipeimpl.h

📁 一个工业控制管道流动控件,能够反映管道内流动情况.不是我写的,但觉得不错,因此转载上来
💻 H
字号:
/***********************************************************************
* Copyright (c) 2007* All rights reserved.* 
* ATTRIBUTE:        管道的绘制
* FILE NAME:		PipeImpl.h
* FILE ID:			SYSTEMCTRL-PIPEIMPL-H
* CURRENT VERSION:	V1.0
* AUTHOR:			戚高
* CONTECT:			successq_g@163.com	
* BUILD DATA:		27/12/2007
* COMPLETION DATE:	27/12/2007
* NOTE:	            This source code can be used freely but without guarantee. 
					You are respon responsible for using the following codes
***********************************************************************/
#ifndef __PIPEIMPL_H__
#define __PIPEIMPL_H__

#include "Gradient.h"

class CFlowCtrl;

class CPipeImpl  
{
public:
	void InitGradient();
	CPipeImpl(CFlowCtrl *pOwer);
	virtual ~CPipeImpl();

	void Draw(CDC *pDC);

	void SetBorderColor(const COLORREF colorBorder);
	void SetCenterColor(const COLORREF colorCenter);
	void SetPipeStyle(CGradient::InterpolationMethod enumInterpolationMethod);
	
	inline COLORREF GetBorderColor() const
	{
		return m_colorBorder;
	}

	inline COLORREF GetCenterColor() const
	{
		return m_colorCenter;
	}

private:
	void DrawGradient(CDC *pDC);

private:
	CFlowCtrl    *m_pOwer;
	CGradient     m_Gradient;

	//Gradient
	COLORREF      m_colorBorder;
	COLORREF      m_colorCenter;

};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -