summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2MovieTable.h
blob: a611ccc1ea2a21b78d665729ba99f274dbb9764f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include "common.h"
#include "T2VerticalTable.h"

class AFX_CLASS_EXPORT T2MovieTable : public T2VerticalTable {
public:
	T2MovieTable(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette);
	virtual ~T2MovieTable() {}

	void SetMovieType(int inType);
	void Add(T2MoviePlugin* inPlugin);
	void Add(CFilePluginList* inList);

protected:
	virtual int OnT2DlgItemCreate(CREATESTRUCT* cs);
	virtual void DrawCellSelf(CDC* pDC, const TableCellT& inCell, BOOL inSelected);
	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);

	int mMovieType;
};