diff options
Diffstat (limited to 'c/listview.cpp')
-rw-r--r-- | c/listview.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/c/listview.cpp b/c/listview.cpp index 62dfba8..b4a61b4 100644 --- a/c/listview.cpp +++ b/c/listview.cpp @@ -29,6 +29,14 @@ ListView::ListView(const HWND hWndParent, const HMENU hMenu, const DWORD dwStyle SendMessage(hWnd, WM_SETFONT, (WPARAM)g_hfNormal, MAKELPARAM(FALSE, 0)); } +/* Retrieve next matching list view item. */ +bool ListView::FindNextItem(LVITEM* const lvi, const LPARAM lParam) +{ + if ((lvi->iItem = ListView_GetNextItem(hWnd, lvi->iItem, lParam)) == -1) + return false; + return ListView_GetItem(hWnd, lvi); +} + /* Naively calculate height of list view. */ int ListView::Height(int bHeader) { |