#include "wx/button.h"
+wxButtonXmlHandler::wxButtonXmlHandler()
+: wxXmlResourceHandler()
+{
+ AddWindowStyles();
+}
+
+
wxObject *wxButtonXmlHandler::DoCreateResource()
{
wxButton *button = new wxButton(m_ParentAsWindow,
bool wxButtonXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("button");
+ return IsOfClass(node, _T("wxButton"));
}