summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2AdvertiseTable.h
blob: d2ca62020d6dbb0bc8221927b26a1ba9802c8e2b (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
#ifndef T2DLL_T2ADVERTISETABLE_H
#define T2DLL_T2ADVERTISETABLE_H
#include "../common.h"
#include "T2VerticalTable.h"

class AFX_CLASS_EXPORT T2AdvertiseTable : public T2VerticalTable {
public:
	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);

protected:
    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;
};
#endif