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 Taskbar eintrag eines "Parentlosen" fensters verhi (https://www.delphipraxis.net/6091-taskbar-eintrag-eines-parentlosen-fensters-verhi.html)

red 29. Jun 2003 10:25


Taskbar eintrag eines "Parentlosen" fensters verhi
 
also folgendes Problem
"normalerweise" nutzt man

Delphi-Quellcode:
 ShowWindow(Application.Handle,SW_HIDE);
* SetWindowLong(Application.Handle,GWL_EXSTYLE,GetWindowLong(Application.Handle,GWL_EXSTYLE) or WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);
* ShowWindow(Application.Handle,SW_SHOW);
um den Taskbareintrag von Form1 zu verhindern. In diesem Fall ist Application Parent von Form1.
Bei meinem Problem habe ich noch ein Form2. Bei diesem Form2 wird durch

Delphi-Quellcode:
SetWindowPos(Form2.Handle, HWND_TOPMOST, Left,Top, Width,Height, SWP_NOACTIVATE or SWP_NOMOVE or SWP_NOSIZE);
* SetWindowLong(Form2.Handle, GWL_HWNDPARENT, 0);
dafür gesorgt, dass dieses TOPMOST ist und immer zu sehen ist. Der SetWindowLong befehlt sorgt in dem fall dafür, dass Form2 "Parentlos" gemacht wird. (Ich weiss nicht so recht wozu das sein muss jedoch bleibt es ohne diesen Befehl nicht immer sichtbar).
So irgendwo hab ich mal gelesen das Windows für jedes Parentlose Fenster einen Taskbareintrag macht. Ich hab nun allemöglichen Befehle quer durcheinander probiert (*g*) und bekomm diesen Taskbareintrag des Form2 einfach nicht weg

hilfe :/


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

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