[PATCH] forward tab notification to the parent
Gerard Patel
gerard.patel at nerim.net
Sat Dec 22 08:31:56 CST 2001
The following patch :
ChangeSet ID: 1008622332606314052827656
CVSROOT: /opt/cvs-commit
Module name: wine
Changes by: julliard at wine2. 01/12/17 15:52:12
Modified files:
dlls/comctl32 : tab.c
Pass on all unhandeled messages to the owner.
leads to bad regressions with some apps.
The attached patch has the same positive effect on hh.exe
but without the regressions.
ChangeLog:
* dlls/comctl32/tab.c
forward tab notifications to the parent.
-------------- next part --------------
Index: dlls/comctl32/tab.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/tab.c,v
retrieving revision 1.63
diff -u -r1.63 tab.c
--- dlls/comctl32/tab.c 2001/12/17 20:52:11 1.63
+++ dlls/comctl32/tab.c 2001/12/22 08:32:02
@@ -2937,7 +2937,10 @@
case WM_LBUTTONUP:
return TAB_LButtonUp (hwnd, wParam, lParam);
-
+
+ case WM_NOTIFY:
+ return SendMessageA(GetParent(hwnd), WM_NOTIFY, wParam, lParam);
+
case WM_RBUTTONDOWN:
return TAB_RButtonDown (hwnd, wParam, lParam);
@@ -2977,7 +2980,7 @@
if (uMsg >= WM_USER)
WARN("unknown msg %04x wp=%08x lp=%08lx\n",
uMsg, wParam, lParam);
- return SendMessageA(GetParent(hwnd), uMsg, wParam, lParam);
+ return DefWindowProcA(hwnd, uMsg, wParam, lParam);
}
return 0;
-------------- next part --------------
More information about the wine-patches
mailing list