Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Programm aus Windowsstartleiste ausblenden. (https://www.delphipraxis.net/59523-programm-aus-windowsstartleiste-ausblenden.html)

Karstadt 23. Dez 2005 15:50


Programm aus Windowsstartleiste ausblenden.
 
Programm aus Windowsstartleiste ausblenden. Mit welche Funktion kann ich das realisieren? :)

dfried 23. Dez 2005 15:53

Re: Programm aus Windowsstartleiste ausblenden.
 
Wenn du damit meinst, dass Programm in der Taskleiste auszublenden, dann bitte die Suche benutzen, gibts schon x mal, wenn nicht, musst du mir genauer erklären was du meinst, dann versteh ich nämlich deine Frage nicht.

robinWie 23. Dez 2005 16:50

Re: Programm aus Windowsstartleiste ausblenden.
 
Hab mal was bei den Schweitzern gefunden.
Sieht so aus:
Delphi-Quellcode:
private
  procedure WMSysCommand(var msg: TWMSysCommand); message WM_SysCommand;

procedure TMainForm.WMSysCommand(var msg: TWMSysCommand);
begin
  if msg.CmdType and $FFF0 = SC_MINIMIZE then
    hide
  else
    inherited;
end;

procedure TMainForm.FormShow(Sender: TObject);
var
  hwndOwner: HWnd;
begin
  hwndOwner := GetWindow(Handle, GW_OWNER);
  ShowWindow(hwndOwner, SW_HIDE);
  // For Windows 2000, additionally call the ShowWindowAsync function:
  ShowWindowAsync(hwndOwner, SW_HIDE);
  //Form is invisible, too
  ShowWindowAsync(Self.Handle, SW_HIDE);
  //Form is show
  ShowWindowAsync(Self.Handle, SW_SHOW);
end;

Karstadt 27. Dez 2005 15:40

Re: Programm aus Windowsstartleiste ausblenden.
 
danke robinwie :wink:


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:10 Uhr.

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 by Thomas Breitkreuz