myrect.h

来自「在代码中演示使用C++开发的BREW端方便的程序 非常值得初学者学习.」· C头文件 代码 · 共 28 行

H
28
字号
// Rect.h: interface for the CRect class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(_RECT_H_)
#define _RECT_H_

#include "myPoint.h"	// Added by ClassView
#include "myShape.h"

class CRect: public CShape  
{
public:
	void* operator new(size_t sz);
	void operator delete(void *p);
	CRect(CPoint ulc, CPoint lrc, RGBVAL col);
	CRect(int16 x, int16 y, int16 dx, int16 dy, RGBVAL col);
	boolean draw(IGraphics *pg);
	CRect();
	virtual ~CRect();

private:
	CPoint m_lrc;	// lower right corner
	CPoint m_ulc;	// upper left corner
};

#endif // !defined(_RECT_H_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?