git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31500
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
\twocolitem{\windowstyle{wxDP\_DROPDOWN}}{Creates a control with a month
calendar drop down part from which the user can select a date.}
\twocolitem{\windowstyle{wxDP\_DEFAULT}}{Creates a control with default style
-which is the best supported for the current platform.}
+which is the best supported for the current platform (currently wxDP\_SPIN
+under Windows and wxDP\_DROPDOWN elsewhere).}
\end{twocollist}
\wxheading{Event handling}
const wxValidator& validator,
const wxString& name)
{
+ // use wxDP_SPIN if wxDP_DEFAULT (0) was given as style
+ if ( !(style & wxDP_DROPDOWN) )
+ style |= wxDP_SPIN;
+
// initialize the base class
if ( !CreateControl(parent, id, pos, size, style, validator, name) )
return false;