Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi [Help] Fenster aus Sysbar... (https://www.delphipraxis.net/130932-%5Bhelp%5D-fenster-aus-sysbar.html)

lbccaleb 21. Mär 2009 20:29

Re: [Help] Fenster aus Sysbar...
 
Meinst du sowas??


Delphi-Quellcode:
procedure TForm1.FormCreate(Sender: TObject);
begin
  ShowWindow(Application.Handle, SW_HIDE);
  SetWindowLong(Application.Handle, GWL_EXSTYLE,
    GetWindowLong(Application.Handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW);
  ShowWindow(Application.Handle, SW_SHOW);
end;

mr_emre_d 21. Mär 2009 20:30

Re: [Help] Fenster aus Sysbar...
 
ShowWindow ist überflüssig !

MfG

lbccaleb 21. Mär 2009 20:33

Re: [Help] Fenster aus Sysbar...
 
Zitat:

Zitat von mr_emre_d
ShowWindow ist überflüssig !

MfG

Ja, aber nicht wenn es zB auf druck eines Buttons erst ausgeblendet werden soll, dann ist ShowWindow von nöten ;)

mr_emre_d 21. Mär 2009 20:36

Re: [Help] Fenster aus Sysbar...
 
Mal ausprobieren :coder:

xD

EDIT:
OK. Haste recht :P

Delphi-Quellcode:
function HideFromToolbar( ApplicationHandle: Cardinal ): LongInt; assembler;
asm
  push eax
  push 0
  push eax
  call ShowWindow
  pop  eax

  push eax
  push -20
  push eax
  call GetWindowLong
  or   eax,  128

  pop  edx
  push eax
  push GWL_EXSTYLE
  push edx
  call SetWindowLong

  push 5
  push eax
  call ShowWindow
end;
MfG


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:09 Uhr.
Seite 3 von 3     123   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz