|
-
Apr 6th, 2000, 02:21 AM
#4
Thread Starter
Addicted Member
DrawText API
Thanks for reply! But I may not be clear in my question
I would like to show a text string with one character underlined using drawtext API call. Is it possible?
Here is the API declaration
Public 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
for example:
DrawText(UserControl.hDC, MyString, Len(MyString), udtTRect, DT_CENTER)
will draw MyString in specified place. The question is how to draw the text with one character underlined? If there is no such format constant for DrawText, How Can I modify the text after DrawText call?
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
|