Mega Code Archive

 
Categories / Delphi / Forms
 

Form without a caption

Title: Form without a caption Question: How to create a window without a caption. Answer: This solution of the problem overrides the CreateParams method. There the parameter-record is set. { Private Deklarationen } procedure CreateParams(var Params : TCreateParams); override; ... procedure TForm1.CreateParams(var Params : TCreateParams); begin inherited Createparams(Params); with Params do Style := (Style or WS_POPUP) and not WS_DLGFRAME; end;