#endif
#include "wx/xml/xh_cald.h"
+#include "wx/event.h"
#include "wx/calctrl.h"
wxObject *wxCalendarCtrlXmlHandler::DoCreateResource()
{
- wxCalendarCtrl *calendar = new wxCalendarCtrl(m_ParentAsWindow,
+ wxCalendarCtrl *calendar = new wxCalendarCtrl(m_parentAsWindow,
GetID(),
wxDefaultDateTime,
/*TODO: take it from resource*/
bool wxCalendarCtrlXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("calendarctrl");
+ return IsOfClass(node, wxT("wxCalendarCtrl"));
}