aboutsummaryrefslogtreecommitdiff
path: root/c/listview.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-29 21:20:44 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-29 21:20:44 +0200
commit2b8b6ac284dca2bd22514d293519cb877a1079d8 (patch)
treecf1a212a5be583d52d4965508218be358f6879e4 /c/listview.h
parentc883d9cf5673fe0af8d69120b048d642e122bdbb (diff)
downloadEpisodeBrowser-2b8b6ac284dca2bd22514d293519cb877a1079d8.tar.gz
Add ListView::FindNextItem.
This makes it much more ergonomic and less error-prone to look up list view items.
Diffstat (limited to 'c/listview.h')
-rw-r--r--c/listview.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/c/listview.h b/c/listview.h
index 478819f..858b156 100644
--- a/c/listview.h
+++ b/c/listview.h
@@ -2,12 +2,14 @@
#define LISTVIEW_H
#include <windows.h>
+#include <commctrl.h>
struct ListView
{
HWND hWnd;
ListView(HWND hWndParent, HMENU hMenu, DWORD dwStyle);
+ bool FindNextItem(LVITEM* lvi, LPARAM lParam);
int Height(int bHeader = -1);
virtual void ResizeColumns(int w);
virtual void UpdateTheme(BOOL bThemeActive);