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 以十六进制显示数据内容

Delphi 读取内存

Delphi窗口随机类名

Delphi中窗体的事件

Delphi 将自己的app.ico应用程序图表添加到dephi资源文件res中

Delphi 使用钩子函数建立一个全局的鼠标钩子

Delphi 如何设置热键

程序人生 : 30岁,我的程序员梦想

Delphi内嵌汇编语言basm精要

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



打赏

取消

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

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

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

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

评论

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