LCL: Prevent calling TListView OnMouseUp twice on Windows 7. Issue #27189, patch from Michl.

git-svn-id: trunk@47557 -
This commit is contained in:
juha 2015-01-28 21:21:26 +00:00
parent 2163b6cdcb
commit 4189a2b962

View File

@ -225,6 +225,7 @@ begin
case PNMHdr(LParam)^.code of
NM_CLICK, NM_RCLICK:
begin
if WindowsVersion = wv7 then Exit;
// A listview doesn't get a WM_LBUTTONUP, WM_RBUTTONUP message,
// because it keeps the message in its own event loop,
// see msdn article about "Default List-View Message Processing"