blob: 48e719471bb36d718827e8438e2264437ef3c06b (
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
|
#ifndef EPISODELISTVIEW_H
#define EPISODELISTVIEW_H
#include <windows.h>
#include <commctrl.h>
#include "listview.h"
#define ELVSIEPISODE 0
#define ELVSITITLE 1
#define ELVSIRATING 2
struct EpisodeListView : public ListView
{
EpisodeListView(HWND hWndParent);
void EnsureFocusVisible();
LRESULT HandleNotify(LPARAM lParam);
void Redraw();
void RestoreFocus();
void SaveFocus();
void SetTop(int iItem);
void SelectUnwatched(int iDir);
void ShowFocus();
void Sort();
void Update();
void UpdateItem(const LVITEM* pLvi);
LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) override;
private:
int m_iSort;
LVITEM m_lviFocus;
static int CALLBACK SortProc(LPARAM lParam1, LPARAM lParam2, LPARAM lExtra);
};
#endif
|