📄 myobject.h
字号:
// MyObject.h: interface for the CMyObject class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MYOBJECT_H__9939D471_C570_11D4_A7CC_EA7F379C1C5F__INCLUDED_)
#define AFX_MYOBJECT_H__9939D471_C570_11D4_A7CC_EA7F379C1C5F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMyObject : public CObject
{
public:
CPoint GetPos() { return m_ptPos; }
virtual CRect GetRect()=0;
virtual bool Draw(CDC* pDC, bool bPause)=0;
bool IsSubmarine() { return m_bSubmarine; }
CMyObject();
virtual ~CMyObject();
protected:
CPoint m_ptPos;
bool m_bSubmarine;
};
#endif // !defined(AFX_MYOBJECT_H__9939D471_C570_11D4_A7CC_EA7F379C1C5F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -