📄 buttomunit.h
字号:
// ButtomUnit.h: interface for the CButtomUnit class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BUTTOMUNIT_H__54BCFF24_7FB5_473C_9BE1_B10657EB4B00__INCLUDED_)
#define AFX_BUTTOMUNIT_H__54BCFF24_7FB5_473C_9BE1_B10657EB4B00__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DataBase.h"
#include "RoadUnit.h"
class CButtomUnit : public CDataBase
{
private:
COLORREF m_color;
CRect m_rect;
CString m_strName;
public:
void SetColor(COLORREF color);
void SetRectValue(CRect rect);
void SetStrName(CString strName);
void SetTopPosition(int nTopPos);
void SetBottomPosition(int nBottomPos);
void SetRoad(CRoadUnit* pRoadUnit);
CRect GetLayerRect();
COLORREF GetLayerColor();
int GetTopPosition();
int GetBottomPosition();
CString GetStrName();
BOOL HitTest(CPoint point);
void Draw(CDC *pDC);
operator = (const CButtomUnit& other);
public:
CButtomUnit();
CButtomUnit(COLORREF color, CRect rect, CString strName);
virtual ~CButtomUnit();
};
#endif // !defined(AFX_BUTTOMUNIT_H__54BCFF24_7FB5_473C_9BE1_B10657EB4B00__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -