AllApi.net

[an error occurred while processing this directive]
 
'Start a new project, and add this code to Form1
Const ETO_OPAQUE = 2
Private Declare Function ExtTextOut Lib "gdi32" Alias "ExtTextOutA" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal wOptions As Long, ByVal lpRect As Any, ByVal lpString As String, ByVal nCount As Long, lpDx As Long) As Long
Private Sub Form_Paint()
    'KPD-Team 1999
    'URL: http://www.allapi.net/
    'E-Mail: KPDTeam@Allapi.net
    Dim Arr(0 To 5) As Long
    Const mStr = "Hello !"
    'API uses pixels
    Me.ScaleMode = vbPixels
    'Set distance between characters
    For x = 0 To 5
        If x Mod 2 = 0 Then
            Arr(x) = 25
        Else
            Arr(x) = 10
        End If
    Next x
    'call ExtTextOut
    ExtTextOut Me.hdc, 0, 0, ETO_OPAQUE, ByVal 0&, mStr, Len(mStr), Arr(0)
End Sub


 
Copyright © 1998-2000, The KPD-Team.
Send mail to KPDTeam@Allapi.net with comments about this web site.
This site is located at
http://www.Allapi.net/