WM_GETTEXTLENGTH change in winproc.c
Gerard Patel
gerard.patel at nerim.net
Sat Aug 18 16:30:54 CDT 2001
I don't understand it :
case WM_GETTEXTLENGTH:
719 case CB_GETLBTEXTLEN:
720 case LB_GETTEXTLEN:
721 /* there may be one DBCS char for each Unicode char */
722 return result * 2;
This has a bad effect on one of my test apps - returns a length of 12
for a text of 6 characters, displays funny symbols after the text.
The Unicode window proc returns 6, why the unicode/ascii conversion
should make it 12 ? The Api returns number of chars, not bytes.
Gerard
More information about the wine-devel
mailing list