http://bugs.winehq.org/show_bug.cgi?id=2857
------- Additional Comments From dclark@akamail.com 2005-10-04 17:12 ------- Here is an additional chunk that puts the updown control in the right place: @@ -874,13 +874,23 @@ DATETIME_Size (DATETIME_INFO *infoPtr, W TRACE("Height=%ld, Width=%ld\n", infoPtr->rcClient.bottom, infoPtr->rcClient.right);
infoPtr->rcDraw = infoPtr->rcClient; - - /* set the size of the button that drops the calendar down */ - /* FIXME: account for style that allows button on left side */ - infoPtr->calbutton.top = infoPtr->rcDraw.top; - infoPtr->calbutton.bottom= infoPtr->rcDraw.bottom; - infoPtr->calbutton.left = infoPtr->rcDraw.right-15; - infoPtr->calbutton.right = infoPtr->rcDraw.right; + + if (infoPtr->dwStyle & DTS_UPDOWN) { + /* the updown control seems to ignore SetWindowPos messages */ + DestroyWindow(infoPtr->hUpdown); + /* hmmm... the updown control seems to ignore the width parameter */ + infoPtr->hUpdown = CreateUpDownControl (WS_CHILD | WS_BORDER | WS_VISIBLE, + infoPtr->rcClient.right-14, 0, 20, infoPtr->rcClient.bottom, + infoPtr->hwndSelf, 1, 0, 0, UD_MAXVAL, UD_MINVAL, 0); + } + else { + /* set the size of the button that drops the calendar down */ + /* FIXME: account for style that allows button on left side */ + infoPtr->calbutton.top = infoPtr->rcDraw.top; + infoPtr->calbutton.bottom= infoPtr->rcDraw.bottom; + infoPtr->calbutton.left = infoPtr->rcDraw.right-15; + infoPtr->calbutton.right = infoPtr->rcDraw.right; + }
/* set enable/disable button size for show none style being enabled */ /* FIXME: these dimensions are completely incorrect */