user32: Add a test for reparenting a WS_POPUP window to a WS_CHILD parent. Take 2.

Dmitry Timoshkov dmitry at
Wed Feb 9 00:09:30 CST 2011

Alexandre Julliard <julliard at> wrote:

> > This test is supposed to show the root of the problem with the test
> > application attached to the bug 13951. It appears that the check performed
> > by server/window.c,is_top_level_window() is not correct (which leads to
> > a SetWindowPos() failure to set foreground window), and probably should be
> > replaced by simple (win->style & (WS_CHILD | WS_POPUP)) != WS_CHILD.
> Maybe, but the test doesn't really demonstrate that.

That was just a guess, I hope that doesn't invalidate the test. If there is
a need for additional tests please let me know and I'll add them later.


More information about the wine-devel mailing list