From bb22bc506676fd268ded3b3d6c7b7acea5dc2db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 17 Jul 2022 17:49:43 +0200 Subject: Update type names and variable prefixes. --- c/listview.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'c/listview.cpp') diff --git a/c/listview.cpp b/c/listview.cpp index 3bec5ab..f70abe5 100644 --- a/c/listview.cpp +++ b/c/listview.cpp @@ -43,10 +43,10 @@ HWND ListView::Handle() const return m_hWnd; } -void ListView::UpdateTheme(const int bThemeActive) +void ListView::UpdateTheme(const BOOL bThemeActive) { DWORD dwStyle; - LPTSTR tszTheme; + const TCHAR* tszTheme; WORD wAction; extern int g_bThemes; @@ -76,7 +76,7 @@ LRESULT CALLBACK ListView::WndProc(const HWND hWnd, const UINT uMsg, { switch (uMsg) { case WM_NOTIFY: - switch (((LPNMHDR)lParam)->code) { + switch (((NMHDR*)lParam)->code) { case HDN_ENDTRACK: UpdateLayout(); return TRUE; @@ -90,10 +90,10 @@ LRESULT CALLBACK ListView::WndProc(const HWND hWnd, const UINT uMsg, LRESULT CALLBACK WndProc(const HWND hWnd, const UINT uMsg, const WPARAM wParam, const LPARAM lParam) { - ListView* const lpLv = (ListView*)GetProp(hWnd, TEXT("this")); + ListView* const pLv = (ListView*)GetProp(hWnd, TEXT("this")); if (uMsg == WM_DESTROY) RemoveProp(hWnd, TEXT("this")); - return lpLv? lpLv->WndProc(hWnd, uMsg, wParam, lParam): FALSE; + return pLv? pLv->WndProc(hWnd, uMsg, wParam, lParam): FALSE; } -- cgit v1.2.3