From c0174806a7c59cdbac1cd941d66e844e55829444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 2 Aug 2022 20:40:24 +0200 Subject: Double-click dragger to reset. One cannot use WM_LBUTTONDBLCLK here, because it relies on WM_LBUTTONDOWN being passed to the default message handler. --- c/layout.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'c/layout.cpp') 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); -- cgit v1.2.3