procedure TfmMain.CreateParams(var Param : TCreateParams); // override
begin
inherited;
Param.ExStyle := Param.ExStyle or WS_EX_TRANSPARENT;
end;
procedure TfmMain.WmNcHitTest(var Msg : TWMNCHitTest); // message WM_NCHITTEST;
begin
Msg.Result := HTTRANSPARENT;
end;