您现在的位置:首页 >> 界面报表 >> 界面报表 >> 内容

Delphi中去掉限制窗体最小尺寸的Windows约束

时间:2011/9/3 15:24:14 点击:

  核心提示:600) this.width = 600;'>type TForm1 = class(TForm)... private procedure GetMinMaxInfo(var Msg: TWMGE...

600) this.width = 600;">

type
   TForm1 = class(TForm)
...
   private
     procedure GetMinMaxInfo(var Msg: TWMGETMINMAXINFO) ; message WM_GETMINMAXINFO;
...
implementation

 

procedure TForm1.GetMinMaxInfo(var Msg: TWMGETMINMAXINFO) ;
begin
   with Msg.MinMaxInfo^ do
   begin
     ptMinTrackSize.X := 0; // min. Width
     ptMinTrackSize.Y := 0; // min. Height
   end;
end;

作者:站长 来源:转载
共有评论 0相关评论
发表我的评论
  • 大名:
  • 内容:
  • 盒子文章(www.2ccc.com) © 2024 版权所有 All Rights Reserved.
  • 沪ICP备05001939号