I'm pretty new at Wine patching and CreateWindowEx does some other parent checking so I didn't want to break anything else by fixing this one.
Igor
-----Original Message----- From: Dimitrie O. Paun [mailto:dpaun@rogers.com] Sent: September 8, 2003 11:52 PM To: wine-devel@winehq.org; Igor Grahek Subject: Re: TreeView control - set correct hwndNotify
On September 8, 2003 03:52 pm, Igor Grahek wrote:
ChangeLog: - TreeView control set Notify window correctly
in case that
window style is WS_POPUP.
Please send unidiff patches: http://www.winehq.org/site/sending_patches
! if ((infoPtr->dwStyle & (WS_CHILD|WS_POPUP)) == WS_POPUP && IsWindow(((LPCREATESTRUCTW)lParam)->hwndParent )) ! infoPtr->hwndNotify =
((LPCREATESTRUCTW)lParam)->hwndParent;
! else ! infoPtr->hwndNotify = GetParent(hwnd); !
I'm curious, can't we always use lpcs->hwndParent here? Or maybe do a GetParent(hwnd) when ->hwndParent is NULL? We should propage this to the other controls as well...
-- Dimi.