edensheiko

OOP project _ draft

May 21st, 2021
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.78 KB | None | 0 0
  1. //#pragma once
  2. //#include "pch.h"
  3. //#include "MyRectangle.h"
  4. //#include "MyCircle.h"
  5. //#include "MyRectCirc.h"
  6. //#include "MyShape.h"
  7. //
  8. //
  9. // void MyRectCirc::draw(CDC* dc)const {
  10. //  MyRectangle::draw(dc); // draw rictagle
  11. //  CPen pen(PS_SOLID, 7, RGB(0, 0, 255));
  12. //  CPen* old = dc->SelectObject(&pen);
  13. //  dc->Ellipse(start.x, start.y, end.x, end.y);
  14. //  dc->SelectObject(old);
  15. //}
  16. //
  17. // void MyRectCirc::clear(CDC* dc)const {
  18. //  MyRectangle::clear(dc);
  19. //  CPen pen(PS_SOLID, 7, RGB(255, 0, 0));
  20. //  CPen* old = dc->SelectObject(&pen);
  21. //  dc->SetROP2(R2_NOTXORPEN);
  22. //  dc->Ellipse(start.x, start.y, end.x, end.y);
  23. //  dc->SelectObject(old);
  24. //  dc->SetROP2(R2_COPYPEN);
  25. //}
  26. //
  27. // void MyRectCirc::Serialize(CArchive& archive)
  28. //{
  29. //  MyRectangle::Serialize(archive);
  30. //}
Advertisement
Add Comment
Please, Sign In to add comment