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