首页  编辑  

窗体阴影

Tags: /超级猛料/VCL/Form,窗体/标题栏和边框/   Date Created:

在窗体边缘出现阴影

procedure TFrmBase.CreateParams(var Para: TCreateParams);

const

  CS_DROPSHADOW = $00020000;

begin

 inherited CreateParams(Para);

 /// 窗体边框的阴影效果

 if (Win32Platform = VER_PLATFORM_WIN32_NT)

    and ((Win32MajorVersion > 5) or ((Win32MajorVersion = 5) and (Win32MinorVersion >= 1))) then

    Para.WindowClass.Style := Para.WindowClass.Style or CS_DROPSHADOW;