[Delphi]无边框窗口最大化不挡任务栏方法

procedure WMGetMinMaxInfo(var mes: TWMGetMinMaxInfo); message WM_GetMinMaxInfo;


procedure TfrmMain.WMGetMinMaxInfo(var mes: TWMGetMinMaxInfo);
var
  I: Integer;
  R: TRect;
begin
  R := Self.Monitor.WorkareaRect;
  mes.MinMaxInfo.ptMaxSize.X := R.Right - R.Left;
  mes.MinMaxInfo.ptMaxSize.Y := R.Bottom - R.Top;
  mes.Result := 0;
  inherited;
end;

 

posted @ 2019-05-27 15:55  我爱我家喵喵  阅读(607)  评论(0编辑  收藏  举报