[Bug 2857] Date Time Picker Incorrect

Wine Bugs wine-bugs at winehq.org
Sun Apr 10 15:56:11 CDT 2005


http://bugs.winehq.org/show_bug.cgi?id=2857





------- Additional Comments From dclark at akamail.com  2005-10-04 15:56 -------
The fundamental problem with the control is that the code does not recognize
that DTS_TIMEFORMAT is a two bit field. So this change fixes it so that the date
box shows the date:
--- dlls/comctl32/datetime.c    9 Jan 2005 16:42:54 -0000       1.54
+++ dlls/comctl32/datetime.c    10 Apr 2005 20:46:18 -0000
@@ -256,7 +256,7 @@ DATETIME_SetFormatW (DATETIME_INFO *info
 
        if (infoPtr->dwStyle & DTS_LONGDATEFORMAT)
            format_item = LOCALE_SLONGDATE;
-       else if (infoPtr->dwStyle & DTS_TIMEFORMAT)
+       else if ((infoPtr->dwStyle & DTS_TIMEFORMAT) == DTS_TIMEFORMAT)
            format_item = LOCALE_STIMEFORMAT;
         else /* DTS_SHORTDATEFORMAT */
            format_item = LOCALE_SSHORTDATE;

Still several bugs though. I don't know yet why the arrows don't show up; they
do in control spy. SPY++ shows they were instantiated, so they may be off the
edge of the window. Also, even when the arrows show up in control spy, they
don't work, but using the arrow keys on the keyboard does work.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list