Module :
Public Declare Function CreateRoundRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long,
ByVal X3 As Long, ByVal Y3 As Long) As Long
Public Declare Function SetWindowRgn Lib "User32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
Forma :
Option Explicit
Dim Rgn1 As Long
Dim a, b
Private Sub Form_Load ()
a = Me.Width / 15
b = Me.Height / 15
Rgn1 = CreateRoundRectRgn (0, 0, a, b, 30, 30)
SetWindowRgn hWnd, Rgn1, True
End Sub
CreateRoundRectRgn (0, 0, a, b, 30, 30) içindeki rakamların soldan sağa kullanım amaçları : soldan kesme, üstten kesme,
yükseklik, genişlik, alt-üst yuvarlama oranı, sol-sağ yuvarlama oranı...
leedut
leedut@gmail.com