diff options
Diffstat (limited to 'c/episodelistview.h')
-rw-r--r-- | c/episodelistview.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/c/episodelistview.h b/c/episodelistview.h new file mode 100644 index 0000000..8befc14 --- /dev/null +++ b/c/episodelistview.h @@ -0,0 +1,35 @@ +#ifndef EPISODELISTVIEW_H +#define EPISODELISTVIEW_H + +#include <windows.h> +#include <commctrl.h> + +#include "listview.h" + +struct EpisodeListView : public ListView +{ + EpisodeListView(void); + 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 |