You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
901 B
C++

//////////////////////////////////////////////////////////////////////////////
//文件: CItem类扩展
//主要功能:
// 操作各类元素或完成一定的功能
//
//程序编写: 2006-12-07
//
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include "ItemEllipse.h"
namespace NItem
{
class CItemCircle : public CItemEllipse
{
public:
CItemCircle(CSigmaDoc * ppDoc);
~CItemCircle(void);
virtual void DoDrawOther(CDC* pDC, int nButton);
virtual void DoLButtonUp(CDC* pDC);
void OnLButtonDown(CDC *pDC, UINT nFlags, CPoint point, int vk) override;
void OnLButtonUp(CDC *pDC, UINT nFlags, CPoint point, int vk) override;
int OnMouseMove(CDC *pDC, UINT nFlags, CPoint point) override;
BOOL OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags) override;
BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) override;
CPoint2D m_downPoint;
CPoint2D m_upPoint;
};
};