Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi MainForm nicht in der Taskleiste anzeigen! (https://www.delphipraxis.net/6869-mainform-nicht-der-taskleiste-anzeigen.html)

brainmue 26. Jul 2003 12:15

Re: MainForm nicht in der Taskleiste anzeigen!
 
Danke für die Nachhilfe!

So habe ich das noch nie gesehen!
Aber jetzt hat es "KLICK" gemacht... :idea:

Aber mein Problem ist damit auch nicht gelöst! Das ist schade...

Dank Dir nochmals...

Gruß
Michael!

Alexander 31. Jul 2003 07:54

Re: MainForm nicht in der Taskleiste anzeigen!
 
Ich habe evtl noch eine Idee ;-) (aber nur wenn ich die Fragestellung noch richtig im Kopf habe ;))
OK versuch es mal so:
Delphi-Quellcode:
 SetWindowLong( Application.Handle, GWL_EXSTYLE,
                 GetWindowLong(Application.Handle, GWL_EXSTYLE) or
                 WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);
bzw.
Delphi-Quellcode:
 SetWindowLong( Form1.Handle, GWL_EXSTYLE,
                 GetWindowLong(Application.Handle, GWL_EXSTYLE) or
                 WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);
Mit dem ersten wird die gesamte Anwendung aus der Taskbar herausgenommen. Evtl musst du, wenn es das 2. nicht funktioniert, den ersten Code nehmen und dann jedes Form wieder in die Taskbar einfügen.
Kannst du dann glaube ich so machen:
Delphi-Quellcode:
 SetWindowLong(Handle, GWL_ExStyle, WS_Ex_AppWindow);
Ich hoffe das hilft dir jetzt ;-) In meinem Programm lasse ich es auf jedenfall so :mrgreen:


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:58 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