aboutsummaryrefslogtreecommitdiff
path: root/c/episodelistview.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-15 18:50:15 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-15 18:50:15 +0200
commite2dfdd7d07f54b464a4419dcf102662f1694d4b8 (patch)
tree7c8ef515847be96cdb12ddc21b8a3104fcce9428 /c/episodelistview.h
parent450770c00ae724fa8a3dc05fc86bf414cfa34e2f (diff)
downloadEpisodeBrowser-e2dfdd7d07f54b464a4419dcf102662f1694d4b8.tar.gz
Split defs.h into separate header files.
This is feasible now that the makedeps script exists to automatically manage build dependencies (see 6034fe2, d00f8b3).
Diffstat (limited to 'c/episodelistview.h')
-rw-r--r--c/episodelistview.h35
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