Commit in reactos/lib/comctl32 on MAIN
datetime.c+2-21.5 -> 1.6
tooltips.c+2-21.9 -> 1.10
+4-4
2 modified files
- Correctly destroy tooltip icons.
- Don't use DrawEdge with NULL device context.

reactos/lib/comctl32
datetime.c 1.5 -> 1.6
diff -u -r1.5 -r1.6
--- datetime.c	19 Sep 2004 09:50:06 -0000	1.5
+++ datetime.c	5 Dec 2004 00:22:03 -0000	1.6
@@ -1170,10 +1170,10 @@
 
   TRACE("Height=%ld, Width=%ld\n", infoPtr->rcClient.bottom, infoPtr->rcClient.right);
 
-  /* use DrawEdge to adjust the size of rcEdge to get rcDraw */
   memcpy((&infoPtr->rcDraw), (&infoPtr->rcClient), sizeof(infoPtr->rcDraw));
 
-  DrawEdge(NULL, &(infoPtr->rcDraw), EDGE_SUNKEN, BF_RECT | BF_ADJUST);
+  /* subract the size of the edge drawn by DrawEdge */
+  InflateRect(&infoPtr->rcDraw, -2, -2);
 
   /* set the size of the button that drops the calendar down */
   /* FIXME: account for style that allows button on left side */

reactos/lib/comctl32
tooltips.c 1.9 -> 1.10
diff -u -r1.9 -r1.10
--- tooltips.c	20 Oct 2004 08:36:55 -0000	1.9
+++ tooltips.c	5 Dec 2004 00:22:03 -0000	1.10
@@ -2818,7 +2818,7 @@
 TOOLTIPS_Unregister (void)
 {
     int i;
-    for (i = 0; i < TTI_ERROR+1; i++)
-        DeleteObject(hTooltipIcons[i]);
+    for (i = TTI_INFO; i <= TTI_ERROR; i++)
+        DestroyIcon(hTooltipIcons[i]);
     UnregisterClassW (TOOLTIPS_CLASSW, NULL);
 }
CVSspam 0.2.8