LCL/Menu: Do not draw mouse-over menu items with effect gdeHighlighted on Windows. Issue #40092.

(cherry picked from commit 45e80c9d97)
This commit is contained in:
wp_xyz 2023-01-14 16:10:11 +01:00 committed by Maxim Ganetsky
parent 35d60a2bb6
commit 153f8b932c

View File

@ -1166,13 +1166,10 @@ begin
AImageIndex := AMenuItem.ImageIndex; AImageIndex := AMenuItem.ImageIndex;
end; end;
if not AMenuItem.Enabled then if AMenuItem.Enabled then
AEffect := gdeDisabled AEffect := gdeNormal
else else
if ASelected then AEffect := gdeDisabled;
AEffect := gdeHighlighted
else
AEffect := gdeNormal;
if AImageIndex < AImageList.Count then if AImageIndex < AImageList.Count then
begin begin