📄 flowunit.h
字号:
/***********************************************************************
* Copyright (c) 2007* All rights reserved.*
* ATTRIBUTE: 流动的小滑块单元
* FILE NAME: FlowUnit.h
* FILE ID: SYSTEMCTRL-FLOWUNIT-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 __FLOWUNIT_H__
#define __FLOWUNIT_H__
class CFlowImpl;
#define _D_LINE_H(x, y, colorBack) \
{ \
pDC->SetPixelV(x , y - 2, colorBack); \
pDC->SetPixelV(x + 1, y - 2, colorBack); \
pDC->SetPixelV(x + 4, y - 2, colorBack); \
pDC->SetPixelV(x + 5, y - 2, colorBack); \
}
#define _D_LINE_V(x, y, colorBack) \
{ \
pDC->SetPixelV(x - 2, y , colorBack); \
pDC->SetPixelV(x - 2, y + 1, colorBack); \
pDC->SetPixelV(x - 2, y + 4, colorBack); \
pDC->SetPixelV(x - 2, y + 5, colorBack); \
}
class CFlowUnit
{
public:
CFlowUnit();
virtual ~CFlowUnit();
void Draw(CDC *pDC, CRect &rcClient);
void SetParentWnd(CFlowImpl *pParentWnd);
inline CRect GetRect() const
{
return m_rectClient;
}
inline void SetRect(const CRect &rcClient)
{
m_rectClient = rcClient;
}
private:
void DrawDLine(CDC *pDC, CPoint ptCenter);
void DrawTriangle(CDC *pDC);
private:
CRect m_rectClient;
CFlowImpl *m_pParentWnd;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -