[PATCH] user32: on VK_RETURN, send WM_COMMAND to ancestor, not parent.

Lei Zhang thestig at google.com
Fri Apr 4 13:11:15 CDT 2008


On Fri, Apr 4, 2008 at 9:14 AM, Dmitry Timoshkov <dmitry at codeweavers.com> wrote:
> "Lei Zhang" <thestig at google.com> wrote:
>
>
> > The edit control is the child of a dialog box bar, which is in turn
> > the child of another dialog box foo. SetParent() is not involved, if
> > that's what you mean.
> >
>
>  Seems that's not the case then, from your test it looks more like
>  a WM_COMMAND forwarding from a child dialog to the parent one.
>
>  --
>  Dmitry.
>

I'm pretty sure the parent dialog is getting the WM_COMMAND directly.
It is not the case where the child dialog gets a WM_COMMAND, and
forwards it to its parent.

Running the test on Windows, the child dialog gets two WM_COMMANDS -
EN_SETFOCUS and EN_KILLFOCUS. Then the parent dialog gets WM_COMMAND
with IDOK.

- Lei



More information about the wine-devel mailing list