diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
commit | c0c336500955a23e344651e5412c9d9d441ef4ee (patch) | |
tree | 790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2NameTable.h | |
parent | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff) | |
download | t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip |
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2NameTable.h | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/src/T2DLL/T2NameTable.h b/src/T2DLL/T2NameTable.h index 139c611..7a47c72 100644 --- a/src/T2DLL/T2NameTable.h +++ b/src/T2DLL/T2NameTable.h @@ -1,24 +1,21 @@ #pragma once #include "common.h" +#include "T2VerticalTable.h" -class T2NameTable { -protected: - virtual int OnT2DlgItemCreate(CREATESTRUCTA*); -public: - T2NameTable(T2TowerDoc*, T2ImageObj*, CPalette*); - T2Name* GetSelectedName(); - virtual void ClickSelf(POINT); -protected: - virtual void OnT2DlgItemLButtonDown(unsigned int, CPoint); +class AFX_EXT_CLASS T2NameTable : public T2VerticalTable { public: - virtual void Add(T2NameList*); - virtual void Add(T2Name*); + T2NameTable(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); + virtual ~T2NameTable() {} + virtual void ClickSelf(POINT inPt); + virtual void Add(T2NameList* inNameList); + virtual void Add(T2Name* inName); virtual void RemoveCurrentCell(); -protected: - virtual void DrawCell(CDC*, const TableCellT&); - virtual void DrawCellSelf(CDC*, const TableCellT&, int); - virtual int OnT2DlgItemEraseBkgnd(CDC*); + T2Name* GetSelectedName(); -public: - virtual ~T2NameTable() {} +protected: + virtual BOOL OnT2DlgItemCreate(CREATESTRUCT* inCreateStruct); + virtual void OnT2DlgItemLButtonDown(UINT inFlags, CPoint inPt); + virtual void DrawCell(CDC* pDC, const TableCellT& inCell); + virtual void DrawCellSelf(CDC* pDC, const TableCellT& inCell, BOOL inSelected); + virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC); }; |