// Add virtual function declarations here protected: COLORREF m_Color; public: virtual ~CElement() {} virtual void Draw(CDC *pDC) const {} CRect GetBoundRect() const; protected: CElement() {}