#pragma once #include "common.h" #include "T2DlgItemScr.h" class AFX_EXT_CLASS T2DlgItemHScr : public T2DlgItemScr { public: T2DlgItemHScr(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); protected: virtual BOOL OnT2DlgItemEraseBkgnd(CDC*); virtual int ScrollBarHittest(CPoint) const; virtual void GetUpButtonRect(const CRect&, CRect&) const; virtual void GetDnButtonRect(const CRect&, CRect&) const; virtual int PositionToValue(const CPoint&) const; virtual int PositionToValue(const CRect&) const; };