use wxDP_SPIN by default under Win32

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-01-19 19:39:33 +00:00
parent ac78ab7b0a
commit 5385747ec6
2 changed files with 6 additions and 1 deletions

View File

@@ -82,6 +82,10 @@ wxDatePickerCtrl::Create(wxWindow *parent,
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;