www.pudn.com > drawpad.zip > eellipsefill.h
#ifndef _EELLIPSEFILL_H
#define _EELLIPSEFILL_H
#ifndef _ENTITY_H
#include "entity.h"
#endif
class EELLIPSEFILL;
// *********************************************************
// class ELINE
// *********************************************************
class EELLIPSEFILL : public ENTITY {
DECLARE_SERIAL(EELLIPSEFILL);
private:
CPoint m_nStart;
CPoint m_nEnd;
public:
EELLIPSEFILL();
EELLIPSEFILL(const CPoint &p1, const CPoint &p2,COLORREF color,UINT Brush);
// access data
CPoint get_start() const { return m_nStart; }
CPoint get_end() const { return m_nEnd; }
void set_start(const CPoint &start) { backup(); m_nStart = start; }
void set_end(const CPoint &end) { backup(); m_nEnd = end; }
DECLARE_BACKUP(EELLIPSEFILL)
virtual int GetMaxGrip() { return 2; }
virtual int GetGripper(int iGrip, CPoint& pnt);
virtual void Draw(CDC *pDC, int state);
virtual int HitTest(CDC *pDC, const PICK_EVENT& pe);
};
#endif