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/T2AdvertiseTable.h | |
parent | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff) | |
download | t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip |
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2AdvertiseTable.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/T2DLL/T2AdvertiseTable.h b/src/T2DLL/T2AdvertiseTable.h index 4895db0..483df91 100644 --- a/src/T2DLL/T2AdvertiseTable.h +++ b/src/T2DLL/T2AdvertiseTable.h @@ -1,27 +1,27 @@ #pragma once #include "common.h" +#include "T2VerticalTable.h" -class T2AdvertiseTable { -protected: - virtual int OnT2DlgItemCreate(CREATESTRUCTA*); -public: - T2AdvertiseTable(T2TowerDoc*, T2ImageObj*, CPalette*); - void Add(T2AdvertisePlugin*, int); - void Add(CFilePluginList*); -protected: - virtual void DrawCell(CDC*, const TableCellT&); - void ClickCell(const TableCellT&, const CPoint&); +class AFX_EXT_CLASS T2AdvertiseTable : public T2VerticalTable { public: - int IsMark(unsigned int); - void SetMark(unsigned int, int); -protected: - virtual void OnT2DlgItemLButtonDown(unsigned int, CPoint); - virtual int OnT2DlgItemEraseBkgnd(CDC*); - virtual void DrawCellSelf(CDC*, const TableCellT&, int); + T2AdvertiseTable(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); + virtual ~T2AdvertiseTable() {} + + void Add(T2AdvertisePlugin* inPlugin, BOOL inSelect); + void Add(CFilePluginList* inPluginList); + BOOL IsMark(unsigned int inRow); + void SetMark(unsigned int inRow, BOOL inValue); -public: - virtual ~T2AdvertiseTable() {} protected: - int GetUserCon() {} - void SetUserCon(int) {} + virtual int OnT2DlgItemCreate(CREATESTRUCT* cs); + virtual void DrawCell(CDC* pDC, const TableCellT& inCell); + void ClickCell(const TableCellT& inCell, const CPoint& inPt); + virtual void OnT2DlgItemLButtonDown(UINT inFlags, CPoint inPt); + virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC); + virtual void DrawCellSelf(CDC* pDC, const TableCellT& inCell, BOOL inSelected); + + int GetUserCon() { return mUserCon; } + void SetUserCon(int v) { mUserCon = v; } + + int mUserCon; }; |