📄 blob.h
字号:
//**Ensure the class isn't declared twice
#ifndef _BLOB_H
#define _BLOB_H
//**Derive a CBlob class from CObject
class CBlob:public CObject
{
//**Include the Serialization functions
DECLARE_SERIAL(CBlob);
public:
//**Declare two constructors
CBlob();
CBlob(CPoint ptPosition);
//**Declare a drawing function
void Draw(CDC* pDC);
virtual void Serialize(CArchive& ar);
//**Declare the attributes
CPoint m_ptPosition;
COLORREF m_crColor;
int m_nSize;
unsigned m_nShape;
};
#endif // _BLOB_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -