summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2DlgItemAllPurpose.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2DlgItemAllPurpose.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to 'src/T2DLL/T2DlgItemAllPurpose.h')
-rw-r--r--src/T2DLL/T2DlgItemAllPurpose.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/T2DLL/T2DlgItemAllPurpose.h b/src/T2DLL/T2DlgItemAllPurpose.h
index 3797e11..6aef4c6 100644
--- a/src/T2DLL/T2DlgItemAllPurpose.h
+++ b/src/T2DLL/T2DlgItemAllPurpose.h
@@ -1,17 +1,22 @@
#pragma once
#include "common.h"
+#include "T2DlgItem.h"
-class T2DlgItemAllPurpose {
+class AFX_EXT_CLASS T2DlgItemAllPurpose : public T2DlgItem {
public:
- T2DlgItemAllPurpose(T2TowerDoc*, T2ImageObj*, CPalette*);
+ T2DlgItemAllPurpose(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette);
virtual ~T2DlgItemAllPurpose();
-protected:
- virtual int OnT2DlgItemEraseBkgnd(CDC*);
- virtual void OnT2DlgItemLButtonDown(unsigned int, CPoint);
- virtual void OnT2DlgItemLButtonUp(unsigned int, CPoint);
- virtual void OnT2DlgItemRButtonDown(unsigned int, CPoint);
- virtual void OnT2DlgItemRButtonUp(unsigned int, CPoint);
-public:
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;
};