summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2FloorNumberTable.h
blob: 4b23872cc7a0fdf7172ef95cc6bad30f7f5e44d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef T2DLL_T2FLOORNUMBERTABLE_H
#define T2DLL_T2FLOORNUMBERTABLE_H
#include "../common.h"
#include "T2DlgItemImageTable.h"

struct StflNotification {
    int floorNumber;
    T2FloorNumberTable *theTable;
};

class AFX_CLASS_EXPORT T2FloorNumberTable : public T2DlgItemImageTable {
public:
	T2FloorNumberTable(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette);
	virtual ~T2FloorNumberTable();
	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();

    RECT mRect;
    int _10C;
    COLORREF _110;
    T2Mover *mMover;
    T2MoverModuleTable *mMoverModuleTable;
};
#endif