首页 > Windows开发 > 详细

用Delphi画圆角Panel的方法(使用CreateRoundRectRgn创造区域,SetWindowRgn显示指定区域)

时间:2016-03-17 17:52:39      阅读:299      评论:0      收藏:0      [点我收藏+]

用Delphi画圆角Panel的方法:


procedure TForm1.Button5Click(Sender: TObject);
var fhr :Thandle;
begin
fhr:=CreateRoundRectRgn(0,0,panel1.width,panel1.height,4,4);
SetWindowRgn(panel1.handle,fhr,true);
end;

Panel的BevelInner 及 BevelOuter 最好设成 bvNone

http://blog.csdn.net/iseekcode/article/details/4687570

用Delphi画圆角Panel的方法(使用CreateRoundRectRgn创造区域,SetWindowRgn显示指定区域)

原文:http://www.cnblogs.com/findumars/p/5288374.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!