#pragma once #include "common.h" #include "T2DlgItem.h" class AFX_EXT_CLASS T2DlgItemButtonBase : public T2DlgItem { public: T2DlgItemButtonBase(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); protected: virtual void OnT2DlgItemLButtonDown(UINT, CPoint); virtual void OnT2DlgItemLButtonUp(UINT, CPoint); virtual void OnT2DlgItemMouseMove(UINT, CPoint); virtual void DrawButtonBase(CDC*, const RECT&, int); BOOL mIsClicked; };