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;
end;
if not AMenuItem.Enabled then
AEffect := gdeDisabled
if AMenuItem.Enabled then
AEffect := gdeNormal
else
if ASelected then
AEffect := gdeHighlighted
else
AEffect := gdeNormal;
AEffect := gdeDisabled;
if AImageIndex < AImageList.Count then
begin