forked from derandark/DungeonViewerAC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ListSlider.h
50 lines (34 loc) · 1.04 KB
/
ListSlider.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#pragma once
#include "HUDControls.h"
typedef std::set<DWORD> FileSliderList;
struct BTreeEntry;
class FileSliderHC : public HUDControl
{
public:
FileSliderHC(RECT Rect, BYTE FileType);
virtual ~FileSliderHC();
void SelectID(DWORD ID, D3DCOLOR Color);
DWORD GetPrevSel();
DWORD GetNextSel();
DWORD GetPrevPageSel();
DWORD GetNextPageSel();
protected:
virtual void DrawInternal();
// For initialization of the file list
void InitFiles(BYTE FileType);
void AppendFileToList(DWORD ID);
static void InitFileCallback(DWORD ID, BTreeEntry *);
static FileSliderHC *CallbackClass;
// For drawing ..
int DrawListEntries(int X, int Y, int LineHeight);
void DrawListHeading(int X, int Y);
void DrawSelectionBox(int X, int Y, int Width, int Height);
// The file list
FileSliderList m_FileList;
FileSliderList::iterator m_ListSel;
// The current selection
DWORD m_SelID;
COLORREF m_SelColor;
// This needs to be moved
int m_LineHeight;
};