That hard coded value is used by only by ThemeVisualStyles (this is not visible in the first patch since it contains only the changes to DateTimePicker and ThemeWin32Classic; see the one I attached to this message). The behavior when ThemeWin32Classic is used remains the same (I am just refactoring to avoid duplicating code). The VisualStyles API is currently implemented only on Windows XP and later, and does not support rendering the DateTimePicker control on Windows XP. So, at this time, the value is only used on Windows Vista. Other platforms use the classic layout. When new Windows versions are released, or the VisualStyles API is implemented on other platforms, the code that uses the value may have to be updated. If you want, I will change it so that it uses the hard coded value only on the default theme of Windows Vista, and falls back to classic layout for any future Windows versions or different themes.
DateTimePicker full.patch
Description: Binary data
_______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
