就如同QQ一样只能拉长而不能拉宽?谢谢!!
解决方案 »
- 入门者求助一个简单问题
- ERP在中国的悲哀
- 如何向上移动listview中的当前选中记录?(在线)
- 请问在Delphi7中怎样打印DBGRID中显示的数据,我用Dbgrid来显示ADOquery查询的内容
- 窗体或界面动画效果
- StringGrid 如何删除选中的的一行? ListBox如何删除选中的的一行?
- 如何把分类汇总结果存入到一个已存在的数据表中?急
- 如何部署web service在Apache2.2上
- delphi里面关于insert的sql问题
- 求delphi版的Ginadll原代码?(ttp://www.vchelp.net/article/submit/cad_key.htm)
- Adoquery.Filter的日期查询
- 谁做过MIME解码程序!
NewHeight: Integer; var Resize: Boolean);
begin
if NewWidth <> Form1.Width then
Resize := False;
end;
给分
窗体移动改变时会触发WM_WINDOWPOSCHANGING。
type
TForm1 = class(TForm)
private
procedure OnPosChange(var msg:TWMWINDOWPOSCHANGING);MESSAGE WM_WINDOWPOSCHANGING;
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.OnPosChange(var msg:TWMWINDOWPOSCHANGING);
begin
//msg.WindowPos.x:=Left;
Msg.WindowPos.cx:=width;//固定width
Msg.Result:=0;
end;