X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56d2f75071fc2a29ec10abe97c5a908bb35f30f4..b1229561e530e829f61887930f2004d9814743b0:/contrib/src/xml/xh_html.cpp diff --git a/contrib/src/xml/xh_html.cpp b/contrib/src/xml/xh_html.cpp index ed0a5bcf4c..23a5cb4c27 100644 --- a/contrib/src/xml/xh_html.cpp +++ b/contrib/src/xml/xh_html.cpp @@ -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