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...