Fix comctl/trackbar creation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you run for example edonkey 0.26+, you can see that it crashes as
soon as you enter the preference dialog box. This come from the fact
that TRACKBAR_Create sends a notification message that windows don't
send. Thus, edonkey does some stuffs on non-yet created components , so
it crashes.

The message sent is NM_TOOLTIPSCREATED. According to Dimitrie O. Paun,
if that message has to be sent, the tooltip should send it, *not*
the trackbar.

So this patch simply remove this notification message.
It applies independently from my other patch about size computation.

a+

Max

Changelog:
   * Remove the sending of NM_TOOLTIPSCREATED which is non existent 
under Windows during the creation of the trackbar.

-- 
Maxime Bellengà <maxime.bellenge@laposte.net>
Index: wine/dlls/comctl32/trackbar.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/trackbar.c,v
retrieving revision 1.46
diff -u -r1.46 trackbar.c
--- wine/dlls/comctl32/trackbar.c	8 Jan 2003 21:09:27 -0000	1.46
+++ wine/dlls/comctl32/trackbar.c	22 Apr 2003 19:26:18 -0000
@@ -1266,9 +1266,7 @@
                              hwnd, 0, 0, 0);
 
     	if (infoPtr->hwndToolTip) {
-            TTTOOLINFOW ti;
-	    TRACKBAR_SendNotify(infoPtr, NM_TOOLTIPSCREATED);
-
+            TTTOOLINFOW ti;	    
             ZeroMemory (&ti, sizeof(ti));
             ti.cbSize   = sizeof(ti);
      	    ti.uFlags   = TTF_IDISHWND | TTF_TRACK | TTF_ABSOLUTE;

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux