aboutsummaryrefslogtreecommitdiff
path: root/c/listview.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-17 17:49:43 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-17 17:49:43 +0200
commitbb22bc506676fd268ded3b3d6c7b7acea5dc2db9 (patch)
treef3df0eca434f86ddc70aab0410a5a4bcd4559b2a /c/listview.cpp
parentcd5ff302d1b03edb6fe81254c585e0e88c8e71ee (diff)
downloadEpisodeBrowser-bb22bc506676fd268ded3b3d6c7b7acea5dc2db9.tar.gz
Update type names and variable prefixes.
Diffstat (limited to 'c/listview.cpp')
-rw-r--r--c/listview.cpp10
1 files changed, 5 insertions, 5 deletions
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;
}