Make your own free website on Tripod.com

AllApi.net

[an error occurred while processing this directive]
 
Private Declare Function GrayString Lib "user32" Alias "GrayStringA" (ByVal hDC As Long, ByVal hBrush As Long, ByVal lpOutputFunc As Long, ByVal lpData As String, ByVal nCount As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
Private Sub Form_Paint()
    'KPD-Team 2000
    'URL: http://www.allapi.net/
    'E-Mail: KPDTeam@Allapi.net
    Const mStr = "Hello ... This is a Grayed String"
    'set the form's backcolor to White
    Me.BackColor = vbWhite
    'API uses pixels
    Me.ScaleMode = vbPixels
    'Call the function
    GrayString Me.hDC, ByVal 0&, ByVal 0&, mStr, Len(mStr), 0, 0, Me.TextWidth(mStr), Me.TextHeight(mStr)
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/