I am writing an application in Delphi 2013 for windows 7 64-bit.
I have a form which opens a new form with ShowModal().
When this new form is being created the FormCreate contains the following code:
SetWindowLong(Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
BorderStyle := bsSingle;
My problem with this code is that the caption also disappears.
How can I hide the new form from the task bar without hiding the form caption?