在Vista系统之后,微软为窗体程序提供了Aero磨砂的效果,如下图。那么用C#如何来实现这种磨砂效果呢?
背景为我的桌面
那先上代码吧:
[StructLayout(LayoutKind.Sequential)]
public struct MARGINS
{
public int Left;
public int Right;
public int Top;
public int Bottom;
}
[DllImport(dwmapi.dll, PreserveSig = false)]
static extern void DwmExtendFrameIntoC