pipeimpl.h
来自「一个工业控制管道流动控件,能够反映管道内流动情况.不是我写的,但觉得不错,因此转」· C头文件 代码 · 共 58 行
H
58 行
/***********************************************************************
* 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 + =
减小字号Ctrl + -
显示快捷键?