开发者

Creating application forms without border, but with shadow (in Windows Vista&Windows 7)

开发者 https://www.devze.com 2022-12-24 09:12 出处:网络
How to do that in WinF开发者_Go百科orms?In Delphi you will need to override CreateParams procedure of the form you want to make borderless and add CS_DROPSHADOW ($00020000) style to the defaults.

How to do that in WinF开发者_Go百科orms?


In Delphi you will need to override CreateParams procedure of the form you want to make borderless and add CS_DROPSHADOW ($00020000) style to the defaults.

procedure TForm1.CreateParams(var Params: TCreateParams);
begin
  inherited;

  Params.WindowClass.Style := Params.WindowClass.Style or CS_DROPSHADOW;
end;
0

精彩评论

暂无评论...
验证码 换一张
取 消