comctl32: Validate text entered in a datetime by the user.
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...
More information about the wine-patches