VB?-Code nach VBa umschreiben?
Reinhard
ich hänge bei diesem Code fest.
Gefunden hier:
http://www.developer.com/net/vb/article.php/3303671
Nachfolgedn wie weit ich bislang kam.
Danke und Gruß
Reinhard
Option Explicit
Public Sub PaintGraphicFace(ByVal g As Graphics, ByVal x As Integer, _
ByVal y As Integer, ByVal dx As Integer, ByVal dy As Integer)
Dim hdc As IntPtr
hdc = g.GetHdc()
Try
Dim Card As Integer
Card= CType(Me.FCardFace, Integer) * 4 + CType(Me.FCardSuit, Integer)
cdtDrawExt(hdc, x, y, dx, dy, Card, 0, 0)
Finally
g.ReleaseHdc (hdc)
End Try
End Sub
Public Sub PaintGraphicBack(ByVal g As Graphics, ByVal x As Integer, _
ByVal y As Integer, ByVal dx As Integer, ByVal dy As Integer)
Dim hdc As IntPtr
hdc = g.GetHdc()
Try
cdtDrawExt(hdc, x, y, dx, dy, 61, 1, 0)
Finally
g.ReleaseHdc (hdc)
End Try
End Sub