解决窗体控件在窗体拖动变化时闪烁的问题

This commit is contained in:
H 2020-09-30 22:43:28 +08:00
parent c90f6e4473
commit fd0fcef428
2 changed files with 15 additions and 0 deletions

View File

@ -1321,6 +1321,11 @@ namespace Sunny.UI
ShowRadius = false;
Padding = new Padding(2, showTitle ? TitleHeight : 2, 2, 2);
}
else
{
ShowRect = false;
Padding = new Padding(0, showTitle ? TitleHeight : 0, 0, 0);
}
}
}

View File

@ -316,5 +316,15 @@ namespace Sunny.UI
{
//SetStyle(UIStyles.Style);
}
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000;
return cp;
}
}
}
}