Q1.
I am trying to get the length of a length of rich text, using the following structure and call:
Code: Select all
Structure q_GETTEXTLENGTHEX
Flags.l
CodePage.l
EndStructure
...
edGad=EditorGadget(#_rich, szLtxt, szTtxt, szWtxt, szHtxt)
...
tmp.q_GETTEXTLENGTHEX
tmp\Flags=0 ;#_qGTL_NUMCHARS ;#_qGTL_DEFAULT
tmp\CodePage=0 ;#_qCP_ACP
totChr=SendMessage_(edGad,#_qEM_GETTEXTLENGTH,@tmp,0)I was hoping to get this value to allocate memory for a streaming op prior to streamout, but so far have to rely on the callback values.
EDIT: Value of #_qEM_GETTEXTLENGTH is set to #WM_USER+95
Q2:
Is there any way to change the background colour for just a selection of the text.
Thanks.
