TreeView control - set correct hwndNotify

Alexandre Julliard julliard at winehq.org
Wed Sep 10 17:31:25 CDT 2003


"Igor Grahek" <igorg at cadlink.com> writes:

> +    infoPtr->hwndNotify = lpcs->hwndParent;
> +    if(!IsWindow(infoPtr->hwndNotify))
> +        infoPtr->hwndNotify = GetParent(hwnd);

Why do you need the IsWindow() check?  AFAICS the parent should always
be valid (or possibly 0 but then GetParent() will be 0 too).

-- 
Alexandre Julliard
julliard at winehq.com



More information about the wine-devel mailing list