浏览代码

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;