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 枚举所有电脑磁盘

tstringlist 常用操作

Delphi屏蔽alt+tab键代码

Delphi xe7写的一个http post的小测试程序

Delphi感染文件的例子

Delphi启动控制面板的方法列表

Delphi tfinddialog treplacedialog对话框在memo中的使用

Delphi firedac操作sqlite内存数据库

winapi 字符及字符串函数(5): ischaralpha - 是否是个字母

Delphi tpath.combine(); {结合路径}

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



打赏

取消

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

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

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

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

评论

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