aboutsummaryrefslogtreecommitdiff
path: root/c/listview.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-15 00:50:32 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-15 00:50:32 +0200
commit095954fe8c0d1a64d8696d0ad0cd0ed395dd6c54 (patch)
treecc1543954c5208dfa56adfa82853239a6504ba18 /c/listview.cpp
parent0e22414d042207269f916298b236f1be341ddeea (diff)
downloadEpisodeBrowser-095954fe8c0d1a64d8696d0ad0cd0ed395dd6c54.tar.gz
Change declaration style.
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"));