X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e066e2566a4e5db3510fe6a204d66850eaeceade..9d8c2f419f522408a922277df330d4c4511befb9:/contrib/src/xml/xh_cald.cpp diff --git a/contrib/src/xml/xh_cald.cpp b/contrib/src/xml/xh_cald.cpp index 723734d7c5..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 IsOfClass(node, _T("wxCalendarCtrl")); + return IsOfClass(node, wxT("wxCalendarCtrl")); }