Ver Mensaje Individual
  #3  
Antiguo 23-09-2008
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
Yo uso este par de funciones:

Código Delphi [-]
uses Windows;

procedure OcultarBotonBarra();
var
  Style: Cardinal;

begin
  Style := GetWindowLong(Application.Handle, GWL_EXSTYLE);
  SetWindowLong(Application.Handle, GWL_EXSTYLE, Style or WS_EX_TOOLWINDOW);
end;

procedure MostrarBotonBarra();
var
  Style: Cardinal;

begin
  Style := GetWindowLong(Application.Handle, GWL_EXSTYLE);
  SetWindowLong(Application.Handle, GWL_EXSTYLE, Style and not WS_EX_TOOLWINDOW);
end;

Oculto la barra directamente en el archivo dpr antes de que se cree el formulario principal.

// Saludos
Responder Con Cita