gpt4 book ai didi

C#:玻璃形式?

转载 作者:可可西里 更新时间:2023-11-01 12:38:32 26 4
gpt4 key购买 nike

如何使用毛玻璃覆盖我的整个表格?这是我的意思的一个例子:

enter image description here

最佳答案

[StructLayout(LayoutKind.Sequential)]
public struct MARGINS
{
public int Left;
public int Right;
public int Top;
public int Bottom;
}

[DllImport("dwmapi.dll")]
public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref MARGINS pMargins);

然后你可以像这样在你的表单上启用它:

MARGINS marg = new MARGINS() { Left = -1, Right = -1, Top = -1, Bottom = -1 };
DwmExtendFrameIntoClientArea(form.Handle, ref marg);

关于C#:玻璃形式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6577670/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com