Re: DrawText question
- From: "Robert" <noone@xxxxxxxxxxx>
- Date: Fri, 17 Mar 2006 16:20:45 +0100
Now the texts don't display at all.
Tried to do the StrConv first, in this case they display, but with the ugly
little squares every second character.
In what format does the string have to be to work with this declare?
Robert
"Mike D Sutton" <EDais@xxxxxxxx> wrote in message
news:%239zOJ%23cSGHA.1948@xxxxxxxxxxxxxxxxxxxxxxx
like this:Whoops, I completely forgot that I use a wrapper function, which looks
<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/
.
- Follow-Ups:
- Re: DrawText question
- From: Robert
- Re: DrawText question
- References:
- DrawText question
- From: Robert
- Re: DrawText question
- From: Thorsten Albers
- Re: DrawText question
- From: Robert
- Re: DrawText question
- From: Thorsten Albers
- Re: DrawText question
- From: Robert
- Re: DrawText question
- From: Mike D Sutton
- DrawText question
- Prev by Date: Re: Getting the caller name
- Next by Date: How to open and display excel file thru VB 6.0
- Previous by thread: Re: DrawText question
- Next by thread: Re: DrawText question
- Index(es):
Relevant Pages
|