// Class defining a curve object class CCurve : public CElement { public: virtual void Draw( CDC* pDC ) const; // Function to display a curve // Constructor for a curve object CCurve( const COLORREF& Color ); protected: CCurve() {} // Default constructor - should not be used }; ////////// CCurve ////////////////////// // Constructor for a curve object CCurve::CCurve( const COLORREF& Color ) { m_Color = Color; // Set Circle color m_EnclosingRect = CRect( 0, 0, 0, 0); m_Pen = 1; // Set pen width } // Draw a curve void CCurve::Draw( CDC* pDC ) const { // fill in details later! }