#ifndef T2DLL_CTOGGLEBUTTONDISABLED_H #define T2DLL_CTOGGLEBUTTONDISABLED_H #include "../common.h" #include "T2DlgItem.h" class AFX_CLASS_EXPORT CToggleButtonDisabled : public T2DlgItem { public: CToggleButtonDisabled(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual BOOL Create(const char* windowName, DWORD style, const RECT& rect, CWnd* parentWnd, UINT nId); virtual void SetValue(int value); void Enable(); void Disable(); protected: virtual BOOL OnT2DlgItemEraseBkgnd(CDC* dc); virtual void OnT2DlgItemLButtonDown(UINT nFlags, CPoint pt); virtual void OnT2DlgItemLButtonUp(UINT nFlags, CPoint pt); virtual void OnT2DlgItemMouseMove(UINT nFlags, CPoint pt); }; #endif