Well, SetParent doesn't work properly at all, but at least it must preserve

window ID.  In fact it also must preserve window styles, destroy X
counterpart if parent of popup or overlapped window is set to someting
different from Desktop, and lot of other stuff that it must and mustn't do.
But preserving ID is good enough for now.
This commit is contained in:
Serge Ivanov 2000-06-07 03:46:14 +00:00 committed by Alexandre Julliard
parent ae89703581
commit 71b1246638
1 changed files with 0 additions and 1 deletions

View File

@ -447,7 +447,6 @@ WND *X11DRV_WND_SetParent(WND *wndPtr, WND *pWndParent)
if( pWndParent == pDesktop ) if( pWndParent == pDesktop )
{ {
wndPtr->dwStyle &= ~WS_CHILD; wndPtr->dwStyle &= ~WS_CHILD;
wndPtr->wIDmenu = 0;
if( X11DRV_GetXRootWindow() == DefaultRootWindow(display) ) if( X11DRV_GetXRootWindow() == DefaultRootWindow(display) )
{ {
CREATESTRUCTA cs; CREATESTRUCTA cs;