关于子窗口问题!急啊!!!!!! 请问各位大侠,我做了一个父窗口和n个子窗口,我不想在子窗口最大化时与父窗口成为一个窗口(没有了子窗口的标题栏),怎么做?????急啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 FromStyle 改为 fsNormal 可以吗 每个窗体加入下面两个函数就可以了//Form2是子窗体FormStyle为fsMDIChildunit Unit2;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs;type TForm2 = class(TForm) private { Private declarations } procedure WMMove(var msg:TWMMove);message WM_Move; procedure WMSize(var msg:TWMMove);message WM_Size; public { Public declarations } end;var Form2: TForm2;implementation{$R *.dfm}{ TForm2 }procedure TForm2.WMMove(var msg: TWMMove);begin if top<-1 then top:=0 ;end;procedure TForm2.WMSize(var msg: TWMMove);begin if top<-1 then top:=0 ;end;end. 把子窗口设为 fsNormal .然后在Create()中frmChild.Parent:=frmParent.Handle; implementationuses unit1; //父窗口是Form1,定义在Unit1中{$R *.dfm}//在子窗口的OnResize中写procedure TForm2.FormResize(Sender: TObject);begin if WindowState=wsMaximized then begin Windowstate:=wsNormal; top:=0; left:=0; width:=Form1.ClientWidth-2; height:=Form1.ClientHeight-2; end;end; 各位好心的大神,求助! 在webbrower里动态更改网页内容~ 怎样动态生成ODBC数据源 问一个问题,谢谢!!!! 运行时报错:Menu index out of range. delphi打开excel如何保存? Delphi中如何实现算术右移 请高手帮忙!!! 现在有一怪问题,请大家帮忙看看怎么解决? 我有<<delphi标准教程>>,但是我什么也干不了. 想用NMSMTP做mail收發的程序(問題解決,立馬給分) 如何在过程中定义常量!!!或如何在定义变量时给个默认数值
//Form2是子窗体FormStyle为fsMDIChild
unit Unit2;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;type
TForm2 = class(TForm)
private
{ Private declarations }
procedure WMMove(var msg:TWMMove);message WM_Move;
procedure WMSize(var msg:TWMMove);message WM_Size;
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
{ TForm2 }
procedure TForm2.WMMove(var msg: TWMMove);
begin
if top<-1 then top:=0 ;
end;procedure TForm2.WMSize(var msg: TWMMove);
begin
if top<-1 then top:=0 ;
end;end.
把子窗口设为 fsNormal .
然后在Create()中frmChild.Parent:=frmParent.Handle;
uses unit1; //父窗口是Form1,定义在Unit1中
{$R *.dfm}//在子窗口的OnResize中写
procedure TForm2.FormResize(Sender: TObject);
begin
if WindowState=wsMaximized then
begin
Windowstate:=wsNormal;
top:=0;
left:=0;
width:=Form1.ClientWidth-2;
height:=Form1.ClientHeight-2;
end;
end;