From e2dfdd7d07f54b464a4419dcf102662f1694d4b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 15 Jul 2022 18:50:15 +0200 Subject: Split defs.h into separate header files. This is feasible now that the makedeps script exists to automatically manage build dependencies (see 6034fe2, d00f8b3). --- c/episodelistview.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 c/episodelistview.h (limited to 'c/episodelistview.h') 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 +#include + +#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 -- cgit v1.2.3