Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Findrx in multilline text control with extended ASCII symbol
#2
Use this member function to convert string offsets from UTF-8 to UTF-16.
Member function str.IndexToUtf16
Code:
Copy      Help
function# index

if(index<0 or index>this.len) end ES_BADARG
if(index=0) ret
ret MultiByteToWideChar(_unicode 0 this.lpstr index 0 0)

Code:
Copy      Help
,,SendMessageW(id(3 hDlg) EM_SETSEL t0.IndexToUtf16(charranges[0 0].cpMin) t0.IndexToUtf16(charranges[0 0].cpMax))


Messages In This Thread
RE: Findrx in multilline text control with extended ASCII symbol - by Gintaras - 12-15-2024, 05:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)