Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SetWindowText in QM 2.3.0
#1
Dear Gintaras,

Congratulations, 2.3.0 is superb.

Let me report that SetWindowText does not display correctly unicode characters.
#2
For backward compatibility, by default are used ANSI versions of Windows API functions. For example SetWindowText is alias of SetWindowTextA. To support Unicode, use Unicode versions of dll functions, types, etc. Example:

Macro
Code:
Copy      Help
SetWindowTextW _hwndqm @"Ąčę"

str s; BSTR b.alloc(300)
GetWindowTextW(_hwndqm b 300)
s.ansi(b)
out s


Forum Jump:


Users browsing this thread: 3 Guest(s)