#pragma once #include "../../../common.h" enum { kTPIMode0 = 0, kTPIMode1 = 1, kTPIMode2 = 2 }; class AFX_CLASS_EXPORT ToolPaletteItem : public CWnd { protected: ToolPaletteItem(); public: ToolPaletteItem(T2TowerDoc *inDoc, int inMode); virtual ~ToolPaletteItem(); virtual void SetIcon(T2ToolIconItem *inItem); virtual void SetText(const char *inText); virtual void SetScrollRange(int inRange); virtual void SetScrollPos(int inPos); virtual void SetStatus(int inStatus); virtual int GetOption(); virtual void SetOption(int inOption); virtual int GetScrollPos(); virtual int GetMode(); virtual T2ToolIconItem *GetIcon(); int mMode; T2TowerDoc *mDocument; CPalette *mPalette; T2ToolIconItem *mIcon; int mStatus; int mOption; int mScrollPos; int mScrollRange; //{{AFX_VIRTUAL(ToolPaletteItem) //}}AFX_VIRTUAL protected: void SetScrollStatus(BOOL inLeftPressed, BOOL inRightPressed); //{{AFX_MSG(ToolPaletteItem) afx_msg BOOL OnEraseBkgnd(CDC *pDC); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() };