ソースを参照

Check UISF_HIDEFOCUS.

Martijn Laan 1 ヶ月 前
コミット
6d938335cd
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Components/BitmapButton.pas

+ 1 - 1
Components/BitmapButton.pas

@@ -176,7 +176,7 @@ begin
 
   var R := ClientRect;
 
-  if Focused then begin
+  if Focused and (SendMessage(Handle, WM_QUERYUISTATE, 0, 0) and UISF_HIDEFOCUS = 0) then begin
     { See TBitBtn.DrawItem in Vcl.Buttons.pas }
     Canvas.Pen.Color := clWindowFrame;
     Canvas.Brush.Style := bsSolid;