summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2FloorNumberTable.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/T2FloorNumberTable.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2FloorNumberTable.h40
1 files changed, 26 insertions, 14 deletions
diff --git a/src/T2DLL/T2FloorNumberTable.h b/src/T2DLL/T2FloorNumberTable.h
index cd4d18f..d1a3059 100644
--- a/src/T2DLL/T2FloorNumberTable.h
+++ b/src/T2DLL/T2FloorNumberTable.h
@@ -1,22 +1,34 @@
#pragma once
#include "common.h"
+#include "T2DlgItemImageTable.h"
-class T2FloorNumberTable {
+struct StflNotification {
+ int floorNumber;
+ T2FloorNumberTable *theTable;
+};
+
+class AFX_EXT_CLASS T2FloorNumberTable : public T2DlgItemImageTable {
public:
- T2FloorNumberTable(T2TowerDoc*, T2ImageObj*, CPalette*);
+ T2FloorNumberTable(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette);
virtual ~T2FloorNumberTable();
- virtual int Create(const char*, unsigned long, const RECT&, CWnd*, unsigned int);
- void SetMover(T2Mover*);
- void SetMoverModuleTable(T2MoverModuleTable*);
+ virtual BOOL Create(const char* inWindowName, DWORD inStyle, const RECT& inRect, CWnd* inParentWnd, UINT inID);
+ void SetMover(T2Mover* inMover);
+ void SetMoverModuleTable(T2MoverModuleTable* inTable);
+ void ClickCell(const TableCellT& inCell, POINT inPt);
+ void RefreshCell(int inFloor);
+
protected:
+ virtual void DrawCellSelf(CDC* pDC, const TableCellT& inCell, BOOL inSelected);
+ virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC);
+ virtual void OnT2DlgItemLButtonDown(UINT inFlags, CPoint inPt);
+ virtual void OnT2DlgItemLButtonUp(UINT inFlags, CPoint inPt);
+ virtual void OnT2DlgItemMouseMove(UINT inFlags, CPoint inPt);
+
int GetVScrValue();
-public:
- void ClickCell(const TableCellT&, POINT);
- void RefreshCell(int);
-protected:
- virtual void DrawCellSelf(CDC*, const TableCellT&, int);
- virtual int OnT2DlgItemEraseBkgnd(CDC*);
- virtual void OnT2DlgItemLButtonDown(unsigned int, CPoint);
- virtual void OnT2DlgItemLButtonUp(unsigned int, CPoint);
- virtual void OnT2DlgItemMouseMove(unsigned int, CPoint);
+
+ RECT mRect;
+ int _10C;
+ COLORREF _110;
+ T2Mover *mMover;
+ T2MoverModuleTable *mMoverModuleTable;
};