unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TForm1 = class(TForm)
private
{ Private declarations }
Procedure WMSysCommand(Var message : TMessage) ;
Message WM_SYSCOMMAND ;
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
Procedure TForm1.WMSysCommand(Var Message : TMessage) ;
begin
if (Message.WParam = SC_MINIMIZE) then
begin
ShowMessage('hello');
end;
Inherited;
end;
end.