]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_cald.cpp
removed libxpm dependencies from makefiles
[wxWidgets.git] / contrib / src / xml / xh_cald.cpp
index a17453184d8e1355bd1fb738b99adadc542eea40..dbd0a05122bfd5dcd726b4761f0b6fd031bed4c6 100644 (file)
@@ -20,6 +20,7 @@
 #endif
 
 #include "wx/xml/xh_cald.h"
 #endif
 
 #include "wx/xml/xh_cald.h"
+#include "wx/event.h"
 #include "wx/calctrl.h"
 
 
 #include "wx/calctrl.h"
 
 
@@ -37,7 +38,7 @@ wxCalendarCtrlXmlHandler::wxCalendarCtrlXmlHandler()
 
 wxObject *wxCalendarCtrlXmlHandler::DoCreateResource()
 { 
 
 wxObject *wxCalendarCtrlXmlHandler::DoCreateResource()
 { 
-    wxCalendarCtrl *calendar = new wxCalendarCtrl(m_ParentAsWindow,
+    wxCalendarCtrl *calendar = new wxCalendarCtrl(m_parentAsWindow,
                                     GetID(),
                                     wxDefaultDateTime,
                                     /*TODO: take it from resource*/
                                     GetID(),
                                     wxDefaultDateTime,
                                     /*TODO: take it from resource*/
@@ -54,7 +55,7 @@ wxObject *wxCalendarCtrlXmlHandler::DoCreateResource()
 
 bool wxCalendarCtrlXmlHandler::CanHandle(wxXmlNode *node)
 {
 
 bool wxCalendarCtrlXmlHandler::CanHandle(wxXmlNode *node)
 {
-    return node->GetName() == _T("calendarctrl");
+    return IsOfClass(node, wxT("wxCalendarCtrl"));
 }
 
 
 }