aboutsummaryrefslogtreecommitdiff
path: root/c/listview.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-11 00:34:44 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-11 00:40:16 +0200
commit8122c83bb3be30325f49d50dbafcd2f14c9b0d2e (patch)
treee0313f5e6fad84c2b5d8517a6efb9e4c82dc953f /c/listview.cpp
parentca56ce2c32b4479af32bf7fb5d065ee9a3a45d8a (diff)
downloadEpisodeBrowser-8122c83bb3be30325f49d50dbafcd2f14c9b0d2e.tar.gz
Improve ElvSort.
Diffstat (limited to 'c/listview.cpp')
-rw-r--r--c/listview.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/c/listview.cpp b/c/listview.cpp
index 87b7dbc..09a3024 100644
--- a/c/listview.cpp
+++ b/c/listview.cpp
@@ -35,13 +35,12 @@ ListView::Create(HMENU hMenu, DWORD dwStyle)
int
ListView::Height(int bHeader)
{
- int iCount;
- iCount = ListView_GetItemCount(m_hWnd);
+ int iCount = ListView_GetItemCount(m_hWnd);
return iCount? Dpi(bHeader? 27: 4)+iCount*Dpi(19): 0;
}
HWND
-ListView::HWnd()
+ListView::HWnd() const
{
return m_hWnd;
}