aboutsummaryrefslogtreecommitdiff
path: root/c/listview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/listview.cpp')
-rw-r--r--c/listview.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/c/listview.cpp b/c/listview.cpp
index cce1461..1a06e55 100644
--- a/c/listview.cpp
+++ b/c/listview.cpp
@@ -32,8 +32,7 @@ ListView::ListView(HMENU hMenu, DWORD dwStyle)
}
/* Naively calculate height of list view. */
-int
-ListView::Height(int bHeader)
+int ListView::Height(int bHeader)
{
if (bHeader == -1)
bHeader = m_bHeader;
@@ -41,14 +40,12 @@ ListView::Height(int bHeader)
return iCount? Dpi(bHeader? 27: 4)+iCount*Dpi(19): 0;
}
-HWND
-ListView::HWnd() const
+HWND ListView::HWnd() const
{
return m_hWnd;
}
-void
-ListView::UpdateTheme(BOOL bThemeActive)
+void ListView::UpdateTheme(BOOL bThemeActive)
{
DWORD dwStyle;
LPTSTR tszTheme;
@@ -76,8 +73,7 @@ ListView::UpdateTheme(BOOL bThemeActive)
SendMessage(m_hWnd, WM_UPDATEUISTATE, MAKEWPARAM(wAction, UISF_HIDEFOCUS), 0);
}
-LRESULT CALLBACK
-ListView::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
+LRESULT CALLBACK ListView::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg) {
case WM_NOTIFY:
@@ -92,8 +88,7 @@ ListView::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return CallWindowProc(m_prevProc, hWnd, uMsg, wParam, lParam);
}
-LRESULT CALLBACK
-WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
+LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
ListView *lpLv = (ListView *)GetProp(hWnd, TEXT("this"));