X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1ee3fb3846ae47c5292128a6f0bd4c8e38d7ba31..6f026b5b63fe7ccb025e84509886f74772b9df13:/src/xrc/xh_datectrl.cpp diff --git a/src/xrc/xh_datectrl.cpp b/src/xrc/xh_datectrl.cpp index 36b31266bd..634bb9e845 100644 --- a/src/xrc/xh_datectrl.cpp +++ b/src/xrc/xh_datectrl.cpp @@ -1,17 +1,12 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: xh_datectrl.cpp +// Name: src/xrc/xh_datectrl.cpp // Purpose: XML resource handler for wxDatePickerCtrl // Author: Vaclav Slavik // Created: 2005-02-07 -// RCS-ID: $Id$ // Copyright: (c) 2005 Vaclav Slavik // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "xh_datectrl.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -31,6 +26,7 @@ wxDateCtrlXmlHandler::wxDateCtrlXmlHandler() : wxXmlResourceHandler() XRC_ADD_STYLE(wxDP_DEFAULT); XRC_ADD_STYLE(wxDP_SPIN); XRC_ADD_STYLE(wxDP_DROPDOWN); + XRC_ADD_STYLE(wxDP_ALLOWNONE); XRC_ADD_STYLE(wxDP_SHOWCENTURY); AddWindowStyles(); } @@ -43,7 +39,7 @@ wxObject *wxDateCtrlXmlHandler::DoCreateResource() GetID(), wxDefaultDateTime, GetPosition(), GetSize(), - GetStyle(_T("style"), wxDP_DEFAULT | wxDP_SHOWCENTURY), + GetStyle(wxT("style"), wxDP_DEFAULT | wxDP_SHOWCENTURY), wxDefaultValidator, GetName());