]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/richedit/wxllist.h
Fix wxListCtrl background colour bug Part I
[wxWidgets.git] / samples / richedit / wxllist.h
index 0669c2580422434db023a889eab78945a4f63a8a..c965f6b322e19697984cdf7cfb7f3fc4f281c1be 100644 (file)
@@ -292,7 +292,7 @@ public:
    virtual wxString DebugDump(void) const;
 #endif
 
-   virtual CoordType GetLength(void) const { return strlen(m_Text.c_str()); }
+   virtual CoordType GetLength(void) const { return wxStrlen(m_Text.c_str()); }
 
    // for editing:
    wxString & GetText(void) { return m_Text; }
@@ -1273,7 +1273,7 @@ class wxLayoutDataObject : public wxCustomDataObject
 public:
    wxLayoutDataObject()
       {
-         SetFormat("application/wxlayoutlist");
+         SetFormat(wxT("application/wxlayoutlist"));
       }
 
    // type safe wrappers