如何将我们的 Winforms 显示为 MetroUI .. 不使用 3rd 方 dll ......我的意思是如何绘制表单的边框
[Form1_______________-|[]|X] <- I Can able to change the color of this part
| |
| |<- I cant change the color of this part
-| |
||__________________________|
| |-> I cant change the color of this part
V
I cant change the color of this part
我没有这个..但是它给出了静态颜色我想改变颜色...所以请给我一些想法
public Form1()
{
InitializeComponent();
Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 0, 0));
}
[DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
private static extern IntPtr CreateRoundRectRgn
(
int nLeftRect, // x-coordinate of upper-left corner
int nTopRect, // y-coordinate of upper-left corner
int nRightRect, // x-coordinate of lower-right corner
int nBottomRect, // y-coordinate of lower-right corner
int nWidthEllipse, // height of ellipse
int nHeightEllipse // width of ellipse
);