X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b008b592cce934305dfa2eaaae0cd824b0d1e1cb..9d8c2f419f522408a922277df330d4c4511befb9:/contrib/src/xml/xh_cald.cpp?ds=sidebyside diff --git a/contrib/src/xml/xh_cald.cpp b/contrib/src/xml/xh_cald.cpp index a17453184d..dbd0a05122 100644 --- a/contrib/src/xml/xh_cald.cpp +++ b/contrib/src/xml/xh_cald.cpp @@ -20,6 +20,7 @@ #endif #include "wx/xml/xh_cald.h" +#include "wx/event.h" #include "wx/calctrl.h" @@ -37,7 +38,7 @@ wxCalendarCtrlXmlHandler::wxCalendarCtrlXmlHandler() wxObject *wxCalendarCtrlXmlHandler::DoCreateResource() { - wxCalendarCtrl *calendar = new wxCalendarCtrl(m_ParentAsWindow, + wxCalendarCtrl *calendar = new wxCalendarCtrl(m_parentAsWindow, GetID(), wxDefaultDateTime, /*TODO: take it from resource*/ @@ -54,7 +55,7 @@ wxObject *wxCalendarCtrlXmlHandler::DoCreateResource() bool wxCalendarCtrlXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("calendarctrl"); + return IsOfClass(node, wxT("wxCalendarCtrl")); }