Unicode on the window?

Just starting out? Need help? Post your questions and find answers here.
rogal79
User
User
Posts: 11
Joined: Tue Feb 10, 2004 3:08 pm
Location: Poland, Toruñ

Unicode on the window?

Post by rogal79 »

I'm trying to display unicode text on the window by DrawTextW function from User32.dll and I can't.
Can somebody help me?
Mayby the reason is wrong font?

A piece of my code is:

Code: Select all

OpenLibrary(6, "User32.dll")
...
r\left2 = 10
r\top2 = 100
r\right2 = 800
r\bottom2 = 600
...
color.l = $00AA3333
*DC = GetDC_(WindowID())
SetBkMode_(*DC, #TRANSPARENT)

font1H = CreateFont_(30,14, 0,0.0,0,0,#True,0,0,0,0,0,0,"Verdana")  
SelectObject_(*DC, font1H)
SetTextColor_(*DC, $00FFFFFF)
CallFunction(6, "DrawTextW", *DC, "re Русский", 10, r, 0)
DeleteObject_(font1H)
ReleaseDC_(WindowID(), *DC)