On 19.09.2005 21:44, Frank Richter wrote:
Interestingly, when CallWindowProcA() is used on an W window, no WM_GETTEXT is sent. (Whether the window proc belongs to the window does not seem to matter.) Though, in that case, the result is not doubled either.
Playing around with a Chinese ANSI code page and some non-Latin codepage, it seems that with SendMessageA(), you get a correct ANSI length, while with CallWndProcA() you don't - seems Windows just returns the Unicode length without any further adjustments...
-f.r.