This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH setup 6/9] Allow click-to-activate in PickView list control
- From: Jon Turney <jon dot turney at dronecode dot org dot uk>
- To: cygwin-apps at cygwin dot com
- Cc: Jon Turney <jon dot turney at dronecode dot org dot uk>
- Date: Tue, 6 Jun 2017 12:54:29 +0100
- Subject: [PATCH setup 6/9] Allow click-to-activate in PickView list control
- Authentication-results: sourceware.org; auth=none
- References: <20170606115432.105020-1-jon.turney@dronecode.org.uk>
This helps somewhat with the problem reported in
https://cygwin.com/ml/cygwin/2017-05/msg00513.html
---
PickView.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/PickView.cc b/PickView.cc
index 222bcb8..0d7af7a 100644
--- a/PickView.cc
+++ b/PickView.cc
@@ -808,6 +808,9 @@ PickView::WindowProc (UINT message, WPARAM wParam, LPARAM lParam)
lastWindowRect = windowRect;
return 0;
}
+ case WM_MOUSEACTIVATE:
+ SetFocus(GetHWND());
+ return MA_ACTIVATE;
}
// default: can't handle this message
--
2.12.3