blob: 141bf84a3b4b67819e3e690695908d4b6f773356 (
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
30
31
32
33
34
35
|
#ifndef EPISODELISTVIEW_H
#define EPISODELISTVIEW_H
#include <windows.h>
#include <commctrl.h>
#include "listview.h"
struct EpisodeListView : public ListView
{
EpisodeListView(HWND);
void DoSort(void);
void EnsureFocusVisible(void);
LRESULT HandleNotify(LPARAM);
int ISort(void) const;
void Redraw(void);
void SaveFocus(void);
void SetTop(int);
void RestoreFocus(void);
void SelectUnwatched(int);
void ShowFocus(void);
void Update(void);
void UpdateItem(LPLVITEM);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM) override;
private:
int m_iSort;
LVITEM m_lviFocus;
friend int CALLBACK ElvSort(LPARAM, LPARAM, LPARAM);
};
#define ELVSIEPISODE 0
#define ELVSITITLE 1
#define ELVSIRATING 2
#endif
|