DrawShape.h
资源名称:DrawSys.zip [点击查看]
上传用户:mosfetic
上传日期:2022-06-16
资源大小:4612k
文件大小:1k
源码类别:
GDI/图象编程
开发平台:
Visual C++
- // DrawShape.h: interface for the CDrawShape class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_DRAWSHAPE_H__69BE7E1B_F35C_405C_9144_6EE600C60C90__INCLUDED_)
- #define AFX_DRAWSHAPE_H__69BE7E1B_F35C_405C_9144_6EE600C60C90__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CDrawShape : public CObject
- {
- DECLARE_SERIAL(CDrawShape)
- public:
- CTime m_tmCreate;
- int m_iID;
- public:
- CDrawShape();
- virtual ~CDrawShape();
- public:
- virtual void Draw(CDC* pDC) {};
- virtual void OnMouseMove(CDC* pDC, UINT nFlags, CPoint point)
- {
- }
- virtual void OnLButtonDown(CDC* pDC, UINT nFlags, CPoint point)
- {
- }
- virtual BOOL OnLButtonUp(CDC* pDC, UINT nFlags, CPoint point)
- {
- return FALSE;
- }
- virtual BOOL PtInShape(CPoint point)
- {
- return FALSE;
- }
- virtual void ShowProperty()
- {
- }
- virtual void MyFormatString(CString& strText, int i);
- virtual void Serialize(CArchive& ar);
- LONG MIN(LONG num1, LONG num2);
- LONG MAX(LONG num1, LONG num2);
- };
- #endif // !defined(AFX_DRAWSHAPE_H__69BE7E1B_F35C_405C_9144_6EE600C60C90__INCLUDED_)