-
Notifications
You must be signed in to change notification settings - Fork 2
/
BkCrossTalk.h
66 lines (55 loc) · 1.4 KB
/
BkCrossTalk.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef BKCROSSTALK_H
#define BKCROSSTALK_H
#include "BkMaker.h"
class BkCrossTalk : public BkMaker
{
public:
BkCrossTalk(ColorRef);
BkCrossTalk(const BkCrossTalk& bkN);
private:
void setRect(const CRect& _rect);
void setRect(const ColorRef& clr);
const CRect getRect() const;
const ColorRef getRectColor() const;
public:
void CT_SetRect(const CRect& _rect, const ColorRef& clr);
public:
void Draw(CPaintDC& dc);
};
inline BkCrossTalk::BkCrossTalk(ColorRef clrRrect)
{
BkMaker::BkMaker();
setRect(clrRrect);
// ColorRef clrBk;
// clrBk.iGray(128);
// _SetBkColor(clrBk);
}
inline BkCrossTalk::BkCrossTalk(const BkCrossTalk& bkN)
{
BkMaker::BkMaker();
setRect(bkN.getRect());
setRect(bkN.getRectColor());
_SetBkColor(bkN._GetBkColor());
}
inline void BkCrossTalk::setRect(const CRect& _rect)
{ m_centerRect = _rect; }
inline void BkCrossTalk::setRect(const ColorRef& clr)
{ m_rectColor = clr; }
inline const CRect BkCrossTalk::getRect() const
{ return m_centerRect; }
inline const ColorRef BkCrossTalk::getRectColor() const
{ return m_rectColor; }
inline void BkCrossTalk::CT_SetRect(const CRect& _rect, const ColorRef& clr)
{
//在DNA轉RNA時使用
setRect(_rect);
setRect(clr);
}
inline void BkCrossTalk::Draw(CPaintDC& dc)
{
//在CPatternDlg使用
//Cross Talk 的背景色
CBrush _brush(getRectColor().oRGB());
dc.FillRect(getRect(), &_brush);
}
#endif