本文整理自网络,侵删。
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 5-7 桥接让Delphi xe2 datasnap中间层支持Delphi低版本开发客户端
Delphi版的隐藏模块单元 hidemoduleunit.pas
Delphi windows 编程[17] - 更换菜单: loadmenu、destroymenu、setmenu
更多相关阅读请进入《Delphi》频道 >>