From 2b8b6ac284dca2bd22514d293519cb877a1079d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 29 Jul 2022 21:20:44 +0200 Subject: Add ListView::FindNextItem. This makes it much more ergonomic and less error-prone to look up list view items. --- c/listview.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c/listview.h') 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 +#include 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); -- cgit v1.2.3