]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
Add required padding to DoGetBestSize() for small bitmaps when using themes
[wxWidgets.git] / src / msw / listctrl.cpp
index e6c810ac1b5a607a62030f781a538d71237e8b69..6e8eba40b58b828e6f66d5933635dc8eafd112b4 100644 (file)
@@ -32,9 +32,9 @@
     #include "wx/log.h"
     #include "wx/settings.h"
     #include "wx/dcclient.h"
+    #include "wx/textctrl.h"
 #endif
 
-#include "wx/textctrl.h"
 #include "wx/imaglist.h"
 #include "wx/listctrl.h"
 
@@ -1511,7 +1511,8 @@ long wxListCtrl::FindItem(long start, const wxPoint& pt, int direction)
 
 // Determines which item (if any) is at the specified point,
 // giving details in 'flags' (see wxLIST_HITTEST_... flags above)
-long wxListCtrl::HitTest(const wxPoint& point, int& flags, long *ptrSubItem)
+long
+wxListCtrl::HitTest(const wxPoint& point, int& flags, long *ptrSubItem) const
 {
     LV_HITTESTINFO hitTestInfo;
     hitTestInfo.pt.x = (int) point.x;