use wxUSE_DATEPICKCTRL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2005-02-07 12:22:09 +00:00
parent 310e47b3be
commit 1ee3fb3846
4 changed files with 14 additions and 2 deletions

View File

@ -12,6 +12,10 @@
#ifndef _WX_DATECTRL_H_
#define _WX_DATECTRL_H_
#include "wx/defs.h"
#if wxUSE_DATEPICKCTRL
#include "wx/control.h" // the base class
#include "wx/datetime.h"
@ -94,5 +98,7 @@ public:
};
#endif
#endif // wxUSE_DATEPICKCTRL
#endif // _WX_DATECTRL_H_

View File

@ -17,6 +17,8 @@
#include "wx/xrc/xmlres.h"
#if wxUSE_DATEPICKCTRL
class WXDLLIMPEXP_XRC wxDateCtrlXmlHandler : public wxXmlResourceHandler
{
DECLARE_DYNAMIC_CLASS(wxDateCtrlXmlHandler)
@ -26,4 +28,6 @@ public:
virtual bool CanHandle(wxXmlNode *node);
};
#endif // wxUSE_DATEPICKCTRL
#endif // _WX_XH_DATECTRL_H_

View File

@ -19,7 +19,7 @@
#pragma hdrstop
#endif
#if wxUSE_XRC
#if wxUSE_XRC && wxUSE_DATEPICKCTRL
#include "wx/xrc/xh_datectrl.h"
#include "wx/datectrl.h"
@ -57,4 +57,4 @@ bool wxDateCtrlXmlHandler::CanHandle(wxXmlNode *node)
return IsOfClass(node, wxT("wxDatePickerCtrl"));
}
#endif // wxUSE_XRC
#endif // wxUSE_XRC && wxUSE_DATEPICKCTRL

View File

@ -107,7 +107,9 @@ void wxXmlResource::InitAllHandlers()
#if wxUSE_STATUSBAR
AddHandler(new wxStatusBarXmlHandler);
#endif
#if wxUSE_DATEPICKCTRL
AddHandler(new wxDateCtrlXmlHandler);
#endif
}
#endif // wxUSE_XRC