delphi代码禁止窗体最大化


本文整理自网络,侵删。

 unit Unit1; 

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;

type
TForm1 = class(TForm)
Button1: TButton;
private
procedure WMGetMinMaxInfo(var Message: TWMGetMinMaxInfo); message WM_GetMinMaxInfo;
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation
{$J+}
{$R *.dfm}



procedure TForm1.WMGetMinMaxInfo(var Message: TWMGetMinMaxInfo);
begin
inherited;
with message.MinMaxInfo^ do
begin
ptMinTrackSize.X := 200;
ptMinTrackSize.Y := 200;
ptMaxTrackSize.X := 200;
ptMaxTrackSize.Y := 200;
end;
Message.Result := 0;
end;

end.

相关阅读 >>

Delphi 如何禁止用户更改窗体的大小

Delphi 一行一行读取txt文件

Delphi java 日期 转换 获取unix时间戳

Delphi 判断是否是十六进制数

Delphi system.fillchar - 填充字节

Delphi 图像二值化

Delphi api屏幕传输算法

Delphi embeddedwb 遍历frames并执行子frame的js脚本

Delphi 如何确定windows安装的语言

Delphi中动态加载image控件图片的方法

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...