#pragma once #include "common.h" #include "T2DlgItem.h" class AFX_CLASS_EXPORT T2DlgItemAllPurpose : public T2DlgItem { public: T2DlgItemAllPurpose(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual ~T2DlgItemAllPurpose(); CPoint GetUpPoint(); CPoint GetDownPoint(); protected: virtual BOOL OnT2DlgItemEraseBkgnd(CDC*); virtual void OnT2DlgItemLButtonDown(UINT, CPoint); virtual void OnT2DlgItemLButtonUp(UINT, CPoint); virtual void OnT2DlgItemRButtonDown(UINT, CPoint); virtual void OnT2DlgItemRButtonUp(UINT, CPoint); CPoint *mDownPoint; CPoint *mUpPoint; int mButton; };