On 20.09.2005 17:00, Frank Richter wrote:
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...
Correction. Seems the CallWndProcA() result depends on what proc is called: Proc directly (as specified to RegisterClassW()): no WM_GETTEXT sent Proc returned by GetWindowLongPtrW (..., GWLP_WNDPROC): no WM_GETTEXT sent Proc returned by GetWindowLongPtrA (..., GWLP_WNDPROC): WM_GETTEXT sent
-f.r.