TreeView control - set correct hwndNotify
Igor Grahek
igorg at cadlink.com
Mon Sep 8 14:52:59 CDT 2003
ChangeLog: - TreeView control set Notify window correctly in case that
window style is WS_POPUP.
------- patch.diff start --------
Index: dlls/comctl32/treeview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/treeview.c,v
retrieving revision 1.125
diff -c -r1.125 treeview.c
*** dlls/comctl32/treeview.c 5 Sep 2003 23:08:42 -0000 1.125
--- dlls/comctl32/treeview.c 8 Sep 2003 18:05:45 -0000
***************
*** 4730,4736 ****
/* Create/Destroy
*******************************************************/
static LRESULT
! TREEVIEW_Create(HWND hwnd)
{
RECT rcClient;
TREEVIEW_INFO *infoPtr;
--- 4730,4736 ----
/* Create/Destroy
*******************************************************/
static LRESULT
! TREEVIEW_Create(HWND hwnd, LPARAM lParam)
{
RECT rcClient;
TREEVIEW_INFO *infoPtr;
***************
*** 4809,4815 ****
infoPtr->root->iLevel = -1;
infoPtr->root->visibleOrder = -1;
! infoPtr->hwndNotify = GetParent(hwnd);
#if 0
infoPtr->bTransparent = ( GetWindowLongA( hwnd, GWL_STYLE) &
TBSTYLE_FLAT);
#endif
--- 4809,4819 ----
infoPtr->root->iLevel = -1;
infoPtr->root->visibleOrder = -1;
! if ((infoPtr->dwStyle & (WS_CHILD|WS_POPUP)) == WS_POPUP &&
IsWindow(((LPCREATESTRUCTW)lParam)->hwndParent ))
! infoPtr->hwndNotify = ((LPCREATESTRUCTW)lParam)->hwndParent;
! else
! infoPtr->hwndNotify = GetParent(hwnd);
!
#if 0
infoPtr->bTransparent = ( GetWindowLongA( hwnd, GWL_STYLE) &
TBSTYLE_FLAT);
#endif
***************
*** 5188,5194 ****
else
{
if (uMsg == WM_CREATE)
! TREEVIEW_Create(hwnd);
else
goto def;
}
--- 5192,5198 ----
else
{
if (uMsg == WM_CREATE)
! TREEVIEW_Create(hwnd, lParam);
else
goto def;
}
------- patch.diff end --------
Igor Grahek
More information about the wine-patches
mailing list