win32 listview: fix wrong message target when sending LButtonUp, RButtonUp messages (fixes popup menu in ide watch window)

git-svn-id: trunk@14808 -
This commit is contained in:
paul 2008-04-12 16:02:06 +00:00
parent d5e6d33772
commit 217383a60c

View File

@ -1907,7 +1907,7 @@ begin
// since we are here after call of CallDefaultWindowProc
// TODO: prevent getting more than one Up, Down message by LCL
PostMessage(Window, Msg, 0, MakeLParam(Pos.x, Pos.y));
PostMessage(PNMHdr(LParam)^.hwndFrom, Msg, 0, MakeLParam(Pos.x, Pos.y));
Exit;
end;
end;