/// <summary>
/// 实现窗体的最小化
/// </summary>
protected override CreateParams CreateParams
{
get
{
const int WS_MINIMIZEBOX = 0x00020000;
CreateParams cp = base.CreateParams;
cp.Style = cp.Style | WS_MINIMIZEBOX; // 允许最小化操作
return cp;
}
}
2022-09-15 14:12:28
/// <summary>
/// 实现窗体的最小化
/// </summary>
protected override CreateParams CreateParams
{
get
{
const int WS_MINIMIZEBOX = 0x00020000;
CreateParams cp = base.CreateParams;
cp.Style = cp.Style | WS_MINIMIZEBOX; // 允许最小化操作
return cp;
}
}