Title: Hiding caption bars
Question: This is a way to hide the caption bar of a window. You can have a sizable window with no caption bar.
Answer:
//---------------------------------------------------------------------------
// Author : Digital Survivor [Esteban Rodrguez Nieto | Jos Plano]
// Email : plmad666@gmail.com | jose.plano@gmail.com
// Web site : www.ds-studioscom.ar
//---------------------------------------------------------------------------
We can use this example in the onCreate event:
Procedure TForm1.FormCreate (Sender : TObject);
Begin
SetWindowLong (Handle, GWL_STYLE, GetWindowLong (Handle, GWL_STYLE) AND NOT WS_CAPTION);
ClientHeight := Height;
End;
//---------------------------------------------------------------------------