]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
compilation fixes - wxGTK compiles but not links
[wxWidgets.git] / src / msw / listctrl.cpp
index 10826ae39f05bb90ed5a459f7f416b007511b79d..1d73b061d652a29b3b5aba4285845c1e35ce70b1 100644 (file)
@@ -29,6 +29,8 @@
     #pragma hdrstop
 #endif
 
     #pragma hdrstop
 #endif
 
+#if wxUSE_LISTCTRL
+
 #ifdef __WIN95__
 
 #ifndef WX_PRECOMP
 #ifdef __WIN95__
 
 #ifndef WX_PRECOMP
@@ -1990,7 +1992,7 @@ static void wxConvertToMSWListItem(const wxListCtrl *ctrl, wxListItem& info, LV_
         }
         else
         {
         }
         else
         {
-            lvItem.pszText = WXSTRINGCAST info.m_text;
+            lvItem.pszText = info.m_text;
             if ( lvItem.pszText )
                 lvItem.cchTextMax = info.m_text.Length();
             else
             if ( lvItem.pszText )
                 lvItem.cchTextMax = info.m_text.Length();
             else
@@ -2021,3 +2023,4 @@ wxListEvent::wxListEvent(wxEventType commandType, int id)
 
 #endif // __WIN95__
 
 
 #endif // __WIN95__
 
+#endif // wxUSE_LISTCTRL