user: make A->W WM_GETTEXTLENGTH use WM_GETTEXT [try 2]

Frank Richter frank.richter at
Tue Sep 20 10:54:21 CDT 2005

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


More information about the wine-devel mailing list