Ver Mensaje Individual
  #2  
Antiguo 16-11-2006
Avatar de seoane
[seoane] seoane is offline
Miembro Premium
 
Registrado: feb 2004
Ubicación: A Coruña, España
Posts: 3.717
Reputación: 24
seoane Va por buen camino
Prueba a interceptar el mensaje WM_SYSCOMMAND

Código Delphi [-]

TForm1 = class(TForm)
  private
    { Private declarations }
    procedure WMSYSCOMMAND(var Msg: TMessage); message WM_SYSCOMMAND;
  public
    { Public declarations }
  end;

 ....

procedure TForm1.WMSYSCOMMAND(var Msg: TMessage);
begin
  if Msg.wParam = SC_MINIMIZE then
  begin
    Hide
  end else
    Inherited;
end;
Responder Con Cita