aboutsummaryrefslogtreecommitdiff
path: root/c/layout.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-02 20:40:24 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-02 20:40:24 +0200
commitc0174806a7c59cdbac1cd941d66e844e55829444 (patch)
tree3f4acd3702cb489e47b56c5b1ad7db977d1fd3c2 /c/layout.cpp
parentae3225a4e7ef86d159fdf27834c453ffcd4da76c (diff)
downloadEpisodeBrowser-c0174806a7c59cdbac1cd941d66e844e55829444.tar.gz
Double-click dragger to reset.
One cannot use WM_LBUTTONDBLCLK here, because it relies on WM_LBUTTONDOWN being passed to the default message handler.
Diffstat (limited to 'c/layout.cpp')
-rw-r--r--c/layout.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/layout.cpp b/c/layout.cpp
index 77aa88e..de1f1f7 100644
--- a/c/layout.cpp
+++ b/c/layout.cpp
@@ -55,6 +55,9 @@ void Dragger::Drag(const int, const int y)
{
RECT rrDlv;
require(GetRelativeRect(g_dlv->hWnd, &rrDlv));
+
+ if (y < Dpi(50) || y > rrDlv.bottom-Dpi(20)) return;
+
int h;
h = rrDlv.bottom-y;
g_dlv->SetHeight(h);