comctl32: Validate text entered in a datetime by the user.

Vincent Povirk vincent at codeweavers.com
Wed Mar 9 15:42:57 CST 2011


This patch partially fixes a bug where our datetime control would report an invalid date if the user types a zero into a field, causing an exception in native .NET's winforms code.

On Windows, entering 00 in the day field will not change the field's value or send a date change notification. It seems Windows waits for the user to enter a 2 digit number (or 4 digit for 4 digit years) or deselect the field or control, then applies the new value and sends a notification only if that new value is valid.

This patch implements that behavior, which should prevent us from reporting invalid dates.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-comctl32-Validate-text-entered-in-a-datetime-by-the-us.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110309/7e03565a/attachment.txt>


More information about the wine-patches mailing list