]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_htmllbox.cpp
Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / xrc / xh_htmllbox.cpp
index f351b04caeca3aad2500b0a1743af8cdc82ab427..da11414ad7820070b642594e975eb6f69d5171c0 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        xh_simplehtmllbox.cpp
+// Name:        src/xrc/xh_simplehtmllbox.cpp
 // Purpose:     XML resource handler for wxSimpleHtmlListBox
 // Author:      Francesco Montorsi
 // Created:     2006/10/21
@@ -22,6 +22,8 @@
 #include "wx/htmllbox.h"
 #include "wx/filesys.h"
 
+#include "wx/xml/xml.h"
+
 IMPLEMENT_DYNAMIC_CLASS(wxSimpleHtmlListBoxXmlHandler, wxXmlResourceHandler)
 
 wxSimpleHtmlListBoxXmlHandler::wxSimpleHtmlListBoxXmlHandler()
@@ -50,7 +52,7 @@ wxObject *wxSimpleHtmlListBoxXmlHandler::DoCreateResource()
                         GetID(),
                         GetPosition(), GetSize(),
                         strList,
-                        GetStyle(_T("style"), wxHLB_DEFAULT_STYLE),
+                        GetStyle(wxT("style"), wxHLB_DEFAULT_STYLE),
                         wxDefaultValidator,
                         GetName());