]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stubs/listctrl.cpp
fix for assert when setting tooltip for a readonly combo
[wxWidgets.git] / src / stubs / listctrl.cpp
index a659399c6364614d90a2ccd00d659bf3b339a24c..2c11981bf2621628487b9d2ef9283c4895f9bb4d 100644 (file)
 #pragma implementation "listctrl.h"
 #endif
 
-#include "wx/listctrl.h"
+#include "wx/stubs/textctrl.h"
+#include "wx/stubs/listctrl.h"
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxListCtrl, wxControl)
 IMPLEMENT_DYNAMIC_CLASS(wxListItem, wxObject)
 
-#endif
 
 wxListCtrl::wxListCtrl()
 {
@@ -265,7 +264,7 @@ bool wxListCtrl::SetItemData(long item, long data)
 }
 
 // Gets the item rectangle
-bool wxListCtrl::GetItemRect(long item, wxRectangle& rect, int code) const
+bool wxListCtrl::GetItemRect(long item, wxRect& rect, int code) const
 {
        // TODO
     return FALSE;
@@ -365,17 +364,14 @@ void wxListCtrl::SetImageList(wxImageList *imageList, int which)
        int flags = 0;
        if ( which == wxIMAGE_LIST_NORMAL )
     {
-               flags = LVSIL_NORMAL;
                m_imageListNormal = imageList;
        }
        else if ( which == wxIMAGE_LIST_SMALL )
     {
-               flags = LVSIL_SMALL;
                m_imageListSmall = imageList;
        }
        else if ( which == wxIMAGE_LIST_STATE )
     {
-               flags = LVSIL_STATE;
                m_imageListState = imageList;
        }
        // TODO set image list