diff --git a/dlls/comctl32/datetime.c b/dlls/comctl32/datetime.c index 15e286ce6c9..5f695016570 100644 --- a/dlls/comctl32/datetime.c +++ b/dlls/comctl32/datetime.c @@ -814,10 +814,11 @@ DATETIME_Size (DATETIME_INFO *infoPtr, WORD flags, INT width, INT height) 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, -GetSystemMetrics(SM_CXEDGE), + -GetSystemMetrics(SM_CYEDGE)); /* set the size of the button that drops the calendar down */ /* FIXME: account for style that allows button on left side */ diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c index 5f30929c5af..069734ea6f7 100644 --- a/dlls/comctl32/rebar.c +++ b/dlls/comctl32/rebar.c @@ -3786,10 +3786,10 @@ REBAR_Destroy (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam) infoPtr->bands = NULL; } - DeleteObject (infoPtr->hcurArrow); - DeleteObject (infoPtr->hcurHorz); - DeleteObject (infoPtr->hcurVert); - DeleteObject (infoPtr->hcurDrag); + DestroyCursor (infoPtr->hcurArrow); + DestroyCursor (infoPtr->hcurHorz); + DestroyCursor (infoPtr->hcurVert); + DestroyCursor (infoPtr->hcurDrag); if(infoPtr->hDefaultFont) DeleteObject (infoPtr->hDefaultFont); SetWindowLongPtrW (infoPtr->hwndSelf, 0, 0); diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c index 1bd13e25c81..b31f71917e4 100644 --- a/dlls/comctl32/tooltips.c +++ b/dlls/comctl32/tooltips.c @@ -2836,7 +2836,7 @@ VOID 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); }