开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜