![]() |
Re: Form per Code erstellt - Minimiert öffnen?
Habe gerade einen Code gefunden, aber hier hätte ich mal gerne nach einer Erklärung gefragt:
Delphi-Quellcode:
Bei diesem Code klappt alles soweit, nur lässt sich die Form nicht schließen :roll:
SetWindowLong(Form2.Handle, GWL_EXSTYLE, GetWindowLong(Form2.Handle, GWL_EXSTYLE) or WS_EX_APPWINDOW and not WS_EX_TOOLWINDOW);
ShowWindow(Form2.Handle, SW_ShowMinimized); //Form2.Show; Bei folgendem Code funktioniert alles:
Delphi-Quellcode:
Warum nochmal das Form2.Show? Was bewirkt das?
SetWindowLong(Form2.Handle, GWL_EXSTYLE, GetWindowLong(Form2.Handle, GWL_EXSTYLE) or WS_EX_APPWINDOW and not WS_EX_TOOLWINDOW);
ShowWindow(Form2.Handle, SW_ShowMinimized); Form2.Show; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:15 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