Re: DrawText question

Tech-Archive recommends: Speed Up your PC by fixing your registry



Whoops, I completely forgot that I use a wrapper function, which looks like this:
<code snipped>
That should ensure the text is in unicode, should it not?

Try this declare/call instead:

'***
Private Declare Function DrawTextW Lib "User32.dll" ( _
ByVal hDC As Long, ByVal lpStr As Long, ByVal nCount As Long, _
ByRef lpRect As RECT, ByVal wFormat As Long) As Long

....

Call DrawTextW(hdc, StrPtr(lpStr), nCount, lpRect, wFormat)
'***

Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/


.