aboutsummaryrefslogtreecommitdiff
path: root/c/listview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/listview.cpp')
-rw-r--r--c/listview.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/c/listview.cpp b/c/listview.cpp
index bd92246..82c6df6 100644
--- a/c/listview.cpp
+++ b/c/listview.cpp
@@ -5,11 +5,14 @@
#include "layout.h"
#include "win.h"
-extern HFONT g_hfNormal;
+/* Actual window procedure for all list views, which calls the
+ * appropriate WndProc member function. */
static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
ListView::ListView(const HWND hWndParent, const HMENU hMenu, const DWORD dwStyle)
{
+ extern HFONT g_hfNormal;
+
m_hWndParent = hWndParent;
hWnd = Require(CreateWindowEx(
WS_EX_CLIENTEDGE,
@@ -25,15 +28,6 @@ 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()
{
const int cItem = ListView_GetItemCount(hWnd);