#ifndef PAINTCANVAS_H
#define PAINTCANVAS_H

#include <windows.h>
#include "canvas.h"

class PaintCanvas: public Canvas
{
protected:
    PAINTSTRUCT _paint;
    HWND _hwnd;
    
public:
    // Constructor obtains the DC
    PaintCanvas(HWND hwnd);
    PaintCanvas(const PaintCanvas &rhs);
    
    // Destructor release the DC
    ~PaintCanvas();
    PaintCanvas &operator=(const PaintCanvas &rhs);
};

#endif // PAINTCANVAS_H
