Question about the new window design

Alexandre Julliard julliard at
Wed Jun 6 16:26:24 CDT 2001

Gerard Patel <gerard.patel at> writes:

> This makes one of my test apps to crash; it's creating a child window
> in the WM_NCCREATE event handling of a window. When the 
> child window is created, X bombs because the X window parent 
> does not exist yet - Wine is trying to call XCreateWindow with 
> parent = 0.
> What is the best way of fixing this ?

The X window should be created before the WM_NCCREATE. I'm planning to
fix it, but it needs to correctly handle style changes happening in
WM_NCCREATE (otherwise we get the managed tooltips bug), and this
needs a bit more work.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list