Private Declare Function GetRgnBox Lib "gdi32" (ByVal hRgn As Long, lpRect As RECT) As Long Private Type RECT Left As Long Top As Long Right As Long Bottom As Long End Type Private Sub PlaceRgn(ByVal Rgn As Long, ByVal X As Single, ByVal Y As Single) Dim R As RECT Call GetRgnBox(Rgn, R) Call OffsetRgn(Rgn, X - R.Left, Y - R.Top) End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question