Automatic ANSI<>Unicode message translation

Phil Krylov phil at newstar.rinet.ru
Tue Jul 26 01:56:57 CDT 2005


On Tue, 26 Jul 2005 10:15:58 +1000
Troy Rollo <wine at troy.rollo.name> wrote:

> If you call SendMessageW under native Windows the translation happens. If you 
> call SendMessageA it does not. This is all exactly what I would expect.
> 
> By my test, sending 0xf301 with SendMessageA gets 0xf301 on Windows, and with 
> SendMessageW gets 0x003f. Sending with SendMessageA on Wine gets 0x0001 and 
> with SendMessageW gets 0x003f.

Thanks for the clarification. Here is a patch that takes it into account.
But I don't know if and when the translation should be done in
PostThreadMessageA.

ChangeLog:

Translate Unicode<->ANSI message wParams only when window type
(ANSI/Unicode) does not match message handling function postfix
(PeekMessageA/W etc.).

-- Ph.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: map_wparam.patch
Type: text/x-patch
Size: 2732 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050726/f616ee54/map_wparam.bin


More information about the wine-patches mailing list