aboutsummaryrefslogtreecommitdiff
path: root/c/datalistview.h
blob: 3a59d415c8483ee527cc6c6ea5aaf930a8686575 (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
#ifndef DATALISTVIEW_H
#define DATALISTVIEW_H

#include "data.h"
#include "listview.h"

#define DLVSIKEY 0
#define DLVSIVALUE 1

extern CfgA& g_cfg;

struct DataListView : public ListView
{
	DataListView(HWND hWndParent);
	/* Return manual height, if set, or calculate height
	 * appropriate for number of items. */
	int Height() override;
	void ResizeColumns(int w) override;
	/* Set manual height. */
	void SetHeight(int h);
	void ShowEpisode(int iEpisode);
private:
	int m_height = 0;
	FileView<DlvDataA> m_fv{L"dlvdata.dat", g_cfg.cEp+128u};
};

#endif