toolbar: some undoc'ed messages

Huw D M Davies h.davies1 at physics.ox.ac.uk
Fri Feb 6 11:19:50 CST 2004


        Dmitry Timoshkov <dmitry at codeweavers.com>
        Add partial support for some undocumented toolbar messages.
-- 
Huw Davies
huw at codeweavers.com
Index: dlls/comctl32/toolbar.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/toolbar.c,v
retrieving revision 1.149
diff -u -r1.149 toolbar.c
--- dlls/comctl32/toolbar.c	3 Feb 2004 00:08:34 -0000	1.149
+++ dlls/comctl32/toolbar.c	6 Feb 2004 17:15:14 -0000
@@ -4616,6 +4616,11 @@
     return iOldVersion;
 }
 
+static LRESULT TOOLBAR_Unkwn45D(HWND hwnd, WPARAM wParam, LPARAM lParam)
+{
+    FIXME("hwnd=%p wParam %08x lParam %08lx stub!\n", hwnd, wParam, lParam);
+    return 0;
+}
 
 /*********************************************************************/
 /*                                                                   */
@@ -4669,6 +4674,13 @@
     return (LRESULT)nOldHotItem;
 }
 
+static LRESULT TOOLBAR_Unkwn460(HWND hwnd, WPARAM wParam, LPARAM lParam)
+{
+    TRACE("hwnd=%p wParam %08x lParam %08lx\n", hwnd, wParam, lParam);
+
+    InvalidateRect(hwnd, NULL, TRUE);
+    return 0;
+}
 
 static LRESULT
 TOOLBAR_Unkwn463 (HWND hwnd, WPARAM wParam, LPARAM lParam)
@@ -4699,7 +4711,6 @@
 	    RECT rc;
 	    HWND hwndParent = GetParent(hwnd);
 
-	    InvalidateRect(hwnd, 0, 1);
 	    GetWindowRect(hwnd, &rc);
 	    MapWindowPoints(0, hwndParent, (LPPOINT)&rc, 2);
 	    TRACE("mapped to (%ld,%ld)-(%ld,%ld)\n",
@@ -4725,6 +4736,14 @@
     return 1;
 }
 
+static LRESULT TOOLBAR_Unkwn464(HWND hwnd, WPARAM wParam, LPARAM lParam)
+{
+    TRACE("hwnd=%p wParam %08x lParam %08lx\n", hwnd, wParam, lParam);
+
+    InvalidateRect(hwnd, NULL, TRUE);
+    return 1;
+}
+
 
 static LRESULT
 TOOLBAR_Create (HWND hwnd, WPARAM wParam, LPARAM lParam)
@@ -5948,12 +5967,20 @@
 	case TB_SETUNICODEFORMAT:
 	    return TOOLBAR_SetUnicodeFormat (hwnd, wParam, lParam);
 
+	case TB_UNKWN45D:
+	    return TOOLBAR_Unkwn45D(hwnd, wParam, lParam);
+
 	case TB_UNKWN45E:
 	    return TOOLBAR_Unkwn45E (hwnd, wParam, lParam);
 
+	case TB_UNKWN460:
+	    return TOOLBAR_Unkwn460(hwnd, wParam, lParam);
+
 	case TB_UNKWN463:
 	    return TOOLBAR_Unkwn463 (hwnd, wParam, lParam);
 
+	case TB_UNKWN464:
+	    return TOOLBAR_Unkwn464(hwnd, wParam, lParam);
 
 /* Common Control Messages */
 



More information about the wine-patches mailing list