TreeView control - set correct hwndNotify

Dimitrie O. Paun dpaun at rogers.com
Mon Sep 8 22:51:47 CDT 2003


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.




More information about the wine-devel mailing list