From 095954fe8c0d1a64d8696d0ad0cd0ed395dd6c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 15 Jul 2022 00:50:32 +0200 Subject: Change declaration style. --- c/listview.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'c/listview.cpp') 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")); -- cgit v1.2.3