2013年3月15日

摘要: 圆角窗体可以通过CreateRoundRectRgn()函数实现圆角窗体的效果。语法:CreateRoundRectRgn(int nLeftRect,int nTopRect,int nRightRect,int nBottomRect,int nWidthEllipse,int nHeightEllipse);参数说明: 依次为矩形左上角的横纵坐标,矩形右下角的横纵坐标,圆角椭圆的宽和高。实例:在OnInitDialog()函数中添加如下代码即可:CRect rect;GetClientRect(&rect);HRGN rgn;rgn=CreateRoundRectRgn(0,0, 阅读全文

posted @ 2013-03-15 18:36 探索者_fhw 阅读(429) 评论(0) 推荐(0)


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3