]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_html.cpp
added timestamping to wxLogStream
[wxWidgets.git] / contrib / src / xml / xh_html.cpp
index ca1b9bac2ffb4a6a51c1a841878ecc11afab644b..23a5cb4c27ea6cc63667d3099e7758ae111bcdce 100644 (file)
@@ -31,6 +31,7 @@ wxHtmlWindowXmlHandler::wxHtmlWindowXmlHandler()
 {
     ADD_STYLE( wxHW_SCROLLBAR_NEVER );
     ADD_STYLE( wxHW_SCROLLBAR_AUTO );
+    AddWindowStyles();
 }
 
 wxObject *wxHtmlWindowXmlHandler::DoCreateResource()
@@ -65,7 +66,7 @@ wxObject *wxHtmlWindowXmlHandler::DoCreateResource()
 
 bool wxHtmlWindowXmlHandler::CanHandle(wxXmlNode *node)
 {
-    return node->GetName() == _T("htmlwindow");
+    return IsOfClass(node, _T("wxHtmlWindow"));
 }
 
 #endif // wxUSE_HTML