vb6.0 实现 picturebox 圆形显示

前端之家收集整理的这篇文章主要介绍了vb6.0 实现 picturebox 圆形显示前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Private Declare Function CreateEllipticRgn Lib "gdi32" (ByVal X1 As Long,ByVal Y1 As Long,ByVal X2 As Long,ByVal Y2 As Long) As Long '创建一个椭圆,该椭圆与X1,Y1和X2,Y2坐标点确定的矩形内切 Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long,ByVal hRgn As Long,ByVal bRedraw As Boolean) As Long '改变窗口的区域 Private Sub Form_Load() Dim mianji As Long mianji = CreateEllipticRgn(0,200,200) SetWindowRgn Picture1.hWnd,mianji,True End Sub 原文链接:https://www.f2er.com/vb/258750.html

猜你在找的VB相关文章