#pragma once #include "common.h" #include "T2VerticalTable.h" class AFX_EXT_CLASS T2NameTable : public T2VerticalTable { public: 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(); T2Name* GetSelectedName(); 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); };