Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#pragma once
- //#include "pch.h"
- //#include "MyRectangle.h"
- //#include "MyCircle.h"
- //#include "MyRectCirc.h"
- //#include "MyShape.h"
- //
- //
- // void MyRectCirc::draw(CDC* dc)const {
- // MyRectangle::draw(dc); // draw rictagle
- // CPen pen(PS_SOLID, 7, RGB(0, 0, 255));
- // CPen* old = dc->SelectObject(&pen);
- // dc->Ellipse(start.x, start.y, end.x, end.y);
- // dc->SelectObject(old);
- //}
- //
- // void MyRectCirc::clear(CDC* dc)const {
- // MyRectangle::clear(dc);
- // CPen pen(PS_SOLID, 7, RGB(255, 0, 0));
- // CPen* old = dc->SelectObject(&pen);
- // dc->SetROP2(R2_NOTXORPEN);
- // dc->Ellipse(start.x, start.y, end.x, end.y);
- // dc->SelectObject(old);
- // dc->SetROP2(R2_COPYPEN);
- //}
- //
- // void MyRectCirc::Serialize(CArchive& archive)
- //{
- // MyRectangle::Serialize(archive);
- //}
Advertisement
Add Comment
Please, Sign In to add comment