Commit 21f94650 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

- Use SetWindowPos to move the buddy window into position instead of

destroying it and recreating it at the new position. - Clear the background in WM_VSCROLL to avoid problems with antialiased text drawing on top of itself multiple times.
parent 04efa133
...@@ -917,7 +917,7 @@ DATETIME_VScroll (DATETIME_INFO *infoPtr, WORD wScroll) ...@@ -917,7 +917,7 @@ DATETIME_VScroll (DATETIME_INFO *infoPtr, WORD wScroll)
DATETIME_SendDateTimeChangeNotify (infoPtr); DATETIME_SendDateTimeChangeNotify (infoPtr);
} }
InvalidateRect(infoPtr->hwndSelf, NULL, FALSE); InvalidateRect(infoPtr->hwndSelf, NULL, TRUE);
return 0; return 0;
} }
...@@ -1010,12 +1010,10 @@ DATETIME_Size (DATETIME_INFO *infoPtr, WORD flags, INT width, INT height) ...@@ -1010,12 +1010,10 @@ DATETIME_Size (DATETIME_INFO *infoPtr, WORD flags, INT width, INT height)
infoPtr->rcDraw = infoPtr->rcClient; infoPtr->rcDraw = infoPtr->rcClient;
if (infoPtr->dwStyle & DTS_UPDOWN) { if (infoPtr->dwStyle & DTS_UPDOWN) {
/* the updown control seems to ignore SetWindowPos messages */ SetWindowPos(infoPtr->hUpdown, NULL,
DestroyWindow(infoPtr->hUpdown); infoPtr->rcClient.right-14, 0,
/* hmmm... the updown control seems to ignore the width parameter */ 15, infoPtr->rcClient.bottom - infoPtr->rcClient.top,
infoPtr->hUpdown = CreateUpDownControl (WS_CHILD | WS_BORDER | WS_VISIBLE, SWP_NOACTIVATE | SWP_NOZORDER);
infoPtr->rcClient.right-14, 0, 20, infoPtr->rcClient.bottom,
infoPtr->hwndSelf, 1, 0, 0, UD_MAXVAL, UD_MINVAL, 0);
} }
else { else {
/* set the size of the button that drops the calendar down */ /* set the size of the button that drops the calendar down */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment