Как заставить форму находиться всегда позади всех окон
Falk0ner, вс, 06/07/2008 - 15:34.
Как заставить форму находиться всегда позади всех окон
type
TForm1 = class(TForm)
procedure WndProc (var message: TMessage); override;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.WndProc (var message: TMessage);
begin
case message.Msg of
WM_WINDOWPOSCHANGING: PWindowPos(Message.LParam)^.hwndInsertAfter:=HWND_BOTTOM;
end;
inherited;
end;
Автор: antonn
Взято из http://forum.sources.ruTForm1 = class(TForm)
procedure WndProc (var message: TMessage); override;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.WndProc (var message: TMessage);
begin
case message.Msg of
WM_WINDOWPOSCHANGING: PWindowPos(Message.LParam)^.hwndInsertAfter:=HWND_BOTTOM;
end;
inherited;
end;
Отправить комментарий