Как скрыть программу от Alt - Tab

Материал из DRKB

Как скрыть программу от Alt - Tab[править | править код]

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShowWindow(Handle, SW_HIDE);
  ShowWindow(Application.Handle, SW_HIDE);
end;


Author: Song
Source: Взято из http://forum.sources.ru
ID: 01481



with Application do
begin
  ShowWindow(Handle, SW_HIDE);
  SetWindowLong(Handle, GWL_EXSTYLE, GetWindowLong(Handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW);
end;
SetWindowLong(Handle, GWL_EXSTYLE, GetWindowLong(Handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW);


Author: Stavros
Source: Взято из http://forum.sources.ru
ID: 01482