用消息:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
//......
private
{ Private declarations }
procedure StayDown(var m: TWMWINDOWPOSCHANGED);
message WM_WindowPosChanging;
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.StayDown(var m: TWMWINDOWPOSCHANGED);
begin
m.WindowPos.hwndInsertAfter:=HWND_BOTTOM;
end;
end.