D
devexpress
Unregistered / Unconfirmed
GUEST, unregistred user!
如题
public
{ Public declarations }
procedure CreateParams(var Params: TCreateParams); override;
end;
var
MainForm: TMainForm;
implementation
{$R *.DFM}
procedure TMainForm.WMNCHitTest(var Message: TWMNCHitTest);
begin
inherited;
Message.Result := HTCAPTION;
end;
procedure TMainForm.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
Params.Style := Params.Style xor ws_caption xor ws_popup;
{或者Params.Style := WS_THICKFRAME or WS_POPUP or WS_BORDER;}
end;
通过上面的方法,可以实现, 但还是有一个边框,
public
{ Public declarations }
procedure CreateParams(var Params: TCreateParams); override;
end;
var
MainForm: TMainForm;
implementation
{$R *.DFM}
procedure TMainForm.WMNCHitTest(var Message: TWMNCHitTest);
begin
inherited;
Message.Result := HTCAPTION;
end;
procedure TMainForm.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
Params.Style := Params.Style xor ws_caption xor ws_popup;
{或者Params.Style := WS_THICKFRAME or WS_POPUP or WS_BORDER;}
end;
通过上面的方法,可以实现, 但还是有一个边框,