积极答复者
不规则窗体

问题
答案
-
-
先通过 CreateRectRgn,CombinRgn等Region函数创建一个你想要的Region图形,然后再调用SetWindowRgn设置到窗口,那个窗口就会成为你创建的Region的形状
0xBAADF00D- 已标记为答案 Nancy Shao 2009年12月21日 2:09
全部回复
-
-
先通过 CreateRectRgn,CombinRgn等Region函数创建一个你想要的Region图形,然后再调用SetWindowRgn设置到窗口,那个窗口就会成为你创建的Region的形状
0xBAADF00D- 已标记为答案 Nancy Shao 2009年12月21日 2:09
-
你好!
如果你只是想要对窗体形状进行重绘,Windows Form程序可以参考下面代码:GraphicsPath^ gp = gcnew GraphicsPath(); gp->AddEllipse(0,0,100,100); gp->AddRectangle(Rectangle(50,50,100,100)); this->Region = gcnew System::Drawing::Region( gp);
详细请参考下面连接:http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c76c.aspx
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.