#ifndef _CTEXT
#define _CTEXT

#include "ShapePosition.h"

class CText:virtual public ShapePosition
{
	CString str;
	int Height;
	int Width;

public:
		CText();
		CText(int _X,int _Y,CString _str);
		void SetStr(CString _str);
		void SetHeight(int _height);

		CString GetStr() const;
		int GetHeight() const;

		int getNumType();
		void display(std::ostream &os);

void Draw(CDC* pDC, Shape* figure=0,bool doLine=false);

CRect GetBoundRect();

void writeAr(CArchive& ar);
void readAr(CArchive& ar);

CString getName();

virtual ~CText();
};
#endif
Соседние файлы в папке part31