#include "wx/renderer.h"
#include "wx/msw/private.h"
+#include "wx/msw/dc.h"
// ----------------------------------------------------------------------------
// private functions
wxCheckListBox *m_pParent;
size_t m_nIndex;
- DECLARE_NO_COPY_CLASS(wxCheckListBoxItem)
+ wxDECLARE_NO_COPY_CLASS(wxCheckListBoxItem);
};
wxCheckListBoxItem::wxCheckListBoxItem(wxCheckListBox *pParent, size_t nIndex)
ImageList_Destroy(himl);
+ if (stat & wxODHasFocus)
+ wxRendererNative::Get().DrawFocusRect(m_pParent, dc, rc);
+
return true;
}
}
}
-int wxCheckListBox::DoHitTestItem(wxCoord x, wxCoord y) const
-{
- int nItem = (int)::SendMessage
- (
- (HWND)GetHWND(),
- LB_ITEMFROMPOINT,
- 0,
- MAKELPARAM(x, y)
- );
-
- return nItem >= (int)m_noItems ? wxNOT_FOUND : nItem;
-}
-
-
wxSize wxCheckListBox::DoGetBestSize() const
{
wxSize best = wxListBox::DoGetBestSize();
return best;
}
-#endif
+#endif // wxUSE_CHECKLISTBOX