blob.h
来自「本光盘包含的是《实用Visual C++ 6.0教程》一书中所有程序的代码」· C头文件 代码 · 共 27 行
H
27 行
//**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 + =
减小字号Ctrl + -
显示快捷键?