Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Gráficos (https://www.clubdelphi.com/foros/forumdisplay.php?f=8)
-   -   Como evitar que aparezca en la barra de tareas. (https://www.clubdelphi.com/foros/showthread.php?t=60168)

rauros 23-09-2008 15:32:55

Como evitar que aparezca en la barra de tareas.
 
Saludos a todos. En la barra de tareas aparece la aplicación. Pero solo quiero que aparezca el form sin la barra de tareas. Gracias.

jhonny 23-09-2008 16:03:35

Seguramente te sirve el siguiente hilo:

http://www.clubdelphi.com/foros/showthread.php?t=50449

roman 23-09-2008 16:48:41

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


La franja horaria es GMT +2. Ahora son las 06:20:06.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi