aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-05 16:45:08 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-05 16:45:08 +0200
commitc0024748e8ff2f46e5d37a054fa349f24ddc497f (patch)
tree15df0541bb2a6c824c6cad81deecd089b738ee35
parent94119478207034b767c1d0a4fa5d8950f7b07b02 (diff)
downloadEpisodeBrowser-c0024748e8ff2f46e5d37a054fa349f24ddc497f.tar.gz
Rename Dragger functions.
-rw-r--r--c/layout.h14
-rw-r--r--c/listview.cpp2
-rw-r--r--c/main.cpp4
3 files changed, 10 insertions, 10 deletions
diff --git a/c/layout.h b/c/layout.h
index 3c616b7..cbdcac7 100644
--- a/c/layout.h
+++ b/c/layout.h
@@ -12,14 +12,14 @@
void UpdateLayout(int w = 0, int h = 0);
/* Dragger objects implement draggable portions of the client area,
- * such as the split between two list views. HandleDown and HandleMove
- * are called by relevant window procedures upon WM_(NC)LBUTTONDOWN
- * and WM_SETCURSOR. */
+ * such as the split between two list views. HandleLButtonDown and
+ * HandleSetCursor are called by relevant window procedures upon
+ * WM_(NC)LBUTTONDOWN and WM_SETCURSOR. */
struct Dragger
{
- bool HandleDown();
- bool HandleMove();
+ bool HandleLButtonDown();
+ bool HandleSetCursor();
protected:
bool IsDown();
bool IsDouble();
@@ -63,7 +63,7 @@ inline bool Dragger::IsDown()
return GetKeyState(VK_LBUTTON) & 0x8000;
}
-inline bool Dragger::HandleDown()
+inline bool Dragger::HandleLButtonDown()
{
extern HWND g_hWnd;
POINT pt;
@@ -79,7 +79,7 @@ inline bool Dragger::HandleDown()
return m_bActive;
}
-inline bool Dragger::HandleMove()
+inline bool Dragger::HandleSetCursor()
{
extern HWND g_hWnd;
POINT pt;
diff --git a/c/listview.cpp b/c/listview.cpp
index 0392941..8224c0a 100644
--- a/c/listview.cpp
+++ b/c/listview.cpp
@@ -73,7 +73,7 @@ LRESULT CALLBACK ListView::WndProc(const HWND hWnd, const UINT uMsg,
break;
case WM_LBUTTONDOWN:
case WM_NCLBUTTONDOWN:
- if (g_dragDlv.HandleDown())
+ if (g_dragDlv.HandleLButtonDown())
return 0;
break;
}
diff --git a/c/main.cpp b/c/main.cpp
index b8303b5..a672c51 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -355,10 +355,10 @@ LRESULT CALLBACK WndProc(const HWND hWnd, const UINT uMsg, const WPARAM wParam,
break;
}
case WM_LBUTTONDOWN:
- g_dragDlv.HandleDown();
+ g_dragDlv.HandleLButtonDown();
break;
case WM_SETCURSOR:
- if (!g_dragDlv.HandleMove()) {
+ if (!g_dragDlv.HandleSetCursor()) {
/* Use default cursor. */
if (reinterpret_cast<HWND>(wParam) == hWnd)
return DefWindowProc(hWnd, uMsg, wParam, lParam);