Ver Mensaje Individual
  #2  
Antiguo 17-08-2016
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Intercepta el mensaje WM_SYSCOMMAND:

Código Delphi [-]
interface

type
  TForm1 = class(TForm)
  private
    procedure WMSysCommand(var Msg: TWMSysCommand);
  end;

implementation

procedure TForm1.WMSysCommand(var Msg: TWMSysCommand);
begin
  if (Msg.CmdType and $FFF0 = SC_MAXIMIZE) then
  begin
    // Mostrar componente
  end
  else if (Msg.CmdType and $FFF0 = SC_RESTORE)
  begin
    // Ocultar componente
  end;

  inherited;
end;

LineComment Saludos
Responder Con Cita