matpiece.h
来自「VC++技术内幕(第四版)的实例」· C头文件 代码 · 共 24 行
H
24 行
// MATPIECE.H all classes for MATPLAN piece classes
class CPiece : public CObject
{
DECLARE_SERIAL(CPiece)
public: // easier if they're not private
double m_length;
double m_width;
CString m_desc;
LONG m_sheet; // sheet number
LONG m_x; // x position of lower left on sheet
LONG m_y; // y position of lower left on sheet
BYTE m_bOverlap; // TRUE if piece overlaps
BOOL m_bNewList; // non-serializing flag for dialog control
public:
CPiece(); // required for serialization
void GetRect(CRect& r);
void InsertInList(CListBox* pListbox, int index);
void ExtractFromList(CListBox* pListbox, int index);
void Draw(CDC* pDC, int yChar);
void PrintLine(CDC* pDC, CPoint point);
virtual void Serialize(CArchive& ar);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?