mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:02:56 +00:00
- Correctly destroy tooltip icons.
- Don't use DrawEdge with NULL device context. svn path=/trunk/; revision=11936
This commit is contained in:
parent
326cdb4ba6
commit
a40265b10e
2 changed files with 4 additions and 4 deletions
|
@ -1170,10 +1170,10 @@ DATETIME_Size (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
|
|
||||||
TRACE("Height=%ld, Width=%ld\n", infoPtr->rcClient.bottom, infoPtr->rcClient.right);
|
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));
|
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 */
|
/* set the size of the button that drops the calendar down */
|
||||||
/* FIXME: account for style that allows button on left side */
|
/* FIXME: account for style that allows button on left side */
|
||||||
|
|
|
@ -2818,7 +2818,7 @@ VOID
|
||||||
TOOLTIPS_Unregister (void)
|
TOOLTIPS_Unregister (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < TTI_ERROR+1; i++)
|
for (i = TTI_INFO; i <= TTI_ERROR; i++)
|
||||||
DeleteObject(hTooltipIcons[i]);
|
DestroyIcon(hTooltipIcons[i]);
|
||||||
UnregisterClassW (TOOLTIPS_CLASSW, NULL);
|
UnregisterClassW (TOOLTIPS_CLASSW, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue