Habe gerade einen Code gefunden, aber hier hätte ich mal gerne nach einer Erklärung gefragt:
Delphi-Quellcode:
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 diesem Code klappt alles soweit, nur lässt sich die Form nicht schließen
Bei folgendem Code funktioniert alles:
Delphi-Quellcode:
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;
Warum nochmal das Form2.Show? Was bewirkt das?