Скачиваний:
8
Добавлен:
01.05.2014
Размер:
924 б
Скачать
// Copyright (C) 1991 - 1999 Rational Software Corporation
#include "stdafx.h"
#include "OurConstants.h"

#include "TextInPentagon.h"

#include <math.h>

//##ModelId=47092F1A01B5
TextInPentagon::TextInPentagon(CPoint center, int size, const char* text, COLORREF aColor):Pentagon(center,size,aColor),Text(text,center,aColor), ID(++count_ID)
{
	color = aColor;
}

//##ModelId=470A154F0290
TextInPentagon::~TextInPentagon()
{
	// TODO: Add your specialized code here.
}

//##ModelId=470A2B400222
long TextInPentagon::count_ID = 0;

//##ModelId=470A2EDA034B
void TextInPentagon::draw(CDC* pDC, COLORREF color, int pen=0)
{
	Text::draw(pDC, color, pen);
	Pentagon::draw(pDC, color, pen);
}


//##ModelId=472F6259033C
double TextInPentagon::area() {
	return Pentagon::area();
}

//##ModelId=472F6259035B
void TextInPentagon::move(CSize& size) {
	Pentagon::move(size);
	Text::move(size);
}
Соседние файлы в папке Лабораторная работа 23