LCL-Win32: Keep TTrayIcon helper window hidden. Issue #41279, patch by Red_prig (Pavel).

This commit is contained in:
Juha 2025-02-01 02:37:46 +02:00
parent 1c2d94fa8c
commit 28578a1e6a

View File

@ -948,7 +948,8 @@ var
begin
Owner := GetWindow(Handle, GW_OWNER);
if (Owner <> 0) and (Owner <> PPopupOwnersWindowInfo(Param)^.AppHandle) then
PPopupOwnersWindowInfo(Param)^.OwnersList.Add(Pointer(Owner));
if (Windows.GetWindowLong(Owner,GWL_STYLE) and WS_VISIBLE<>0) then
PPopupOwnersWindowInfo(Param)^.OwnersList.Add(Pointer(Owner));
Result := True;
end;