📄 goodsframe.h
字号:
// GoodsFrame.h: interface for the CGoodsFrame class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GOODSFRAME_H__18786878_992B_4D65_AE82_CEBD7DE960A3__INCLUDED_)
#define AFX_GOODSFRAME_H__18786878_992B_4D65_AE82_CEBD7DE960A3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CGoodsFrame
{
public:
BOOL PointInRect(const CPoint& point, int& r, int& c);
void DrawStep(CDC *);
CRect GetMinRect(const int &r, const int &c);
CGoodsFrame(const int &, const int &);
CGoodsFrame();
virtual ~CGoodsFrame();
void SetRowCol(const int &r, const int &c);
int ToIndex(const int &r, const int &c){return r * m_iColNum + c;}
// s => 0: 空 1: 有 2: 使用 3: 禁用
void SetState(const int &r, const int &c, const int &s) {m_iStateArra[ToIndex(r, c)] = s;}
int GetState(const int &r, const int &c) {return m_iStateArra[ToIndex(r, c)];}
void SetRect(const CRect &);
CRect GetRect(const int &r, const int &c){return m_rectFrameArra[ToIndex(r, c)];}
void Draw(CDC *,int);
private:
CArray<CRect, CRect> m_rectFrameArra;
CArray<int, int> m_iStateArra;
CPen m_pen;
CBrush m_brushBack;
CBrush m_brushNull;
CBrush m_brushNull1;
CBrush m_brushNull2;
CBrush m_brushHave;
CBrush m_brushUsing;
CBrush m_brushStop1;
CBrush m_brushStop2;
CBrush m_brushStop3;
CBrush m_brushStep1;
CBrush m_brushStep2;
public:
CRect m_rectAll;
int m_iRowNum;
int m_iColNum;
};
#endif // !defined(AFX_GOODSFRAME_H__18786878_992B_4D65_AE82_CEBD7DE960A3__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -