|
-
Aug 2nd, 2009, 06:41 PM
#1
Thread Starter
Addicted Member
Help with DrawText API with Colors
is it possible to drawtext changing each letter with a different color?
I know the api is
Private Declare Function DrawText Lib "user32" Alias "DrawTextA" (ByVal hDC As Long, ByVal lpStr As String, ByVal nCount As Long, lpRect As RECT, ByVal wFormat As Long) As Long
and this will change the color..
Private Declare Function SetTextColor Lib "gdi32" (ByVal hDC As Long, ByVal crColor As Long) As Long
but i cant seem to figure out how to alternate the color
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|