user32 - set_active_window uses SendMessage instead ofPostMessage for WM_ACTIVATEAPP messages.

Alexandre Julliard julliard at winehq.org
Sun Aug 5 16:23:02 CDT 2007


Peter Dons Tychsen <donpedro at tdcadsl.dk> writes:

> This piece of code, if inserted into the test system, could (on original
> Windows) show us which messages we are incorrectly posting or sending. I
> can probably also be used for other test purposes. I works by checking
> the call stack for the calls SendMessageA() and SendMessageW(). Works
> like charm on Windows-XP. Will need some work to also work inside Wine,
> but that is not important for now.

This is silly. It can't possibly work right since there is no reason
that messages are sent using the exported functions, it won't work on
anything not compiled with frame pointer, and there's absolutely no
need for anything like that at all. A posted message doesn't call the
window proc directly, it goes through the message queue, so it's
completely trivial to check for it between GetMessage and
DispatchMessage.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list