]> 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 ed0a5bcf4c5d7b6034a095e98fa3d5ab66593eb2..23a5cb4c27ea6cc63667d3099e7758ae111bcdce 100644 (file)
@@ -31,6 +31,7 @@ wxHtmlWindowXmlHandler::wxHtmlWindowXmlHandler()
 {
     ADD_STYLE( wxHW_SCROLLBAR_NEVER );
     ADD_STYLE( wxHW_SCROLLBAR_AUTO );
+    AddWindowStyles();
 }
 
 wxObject *wxHtmlWindowXmlHandler::DoCreateResource()
@@ -44,7 +45,7 @@ wxObject *wxHtmlWindowXmlHandler::DoCreateResource()
 
     if( HasParam( _T("borders") ))
     {
-        control->SetBorders( GetLong( _T("borders" )));
+        control->SetBorders( GetDimension( _T("borders" )));
     }
 
     if( HasParam( _T("url") ))
@@ -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