Add DoGetBestSize to wxCheckListBox that adds room for the checkbox

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-06-15 03:23:05 +00:00
parent 5f5183d34b
commit 6d50c6a702
2 changed files with 10 additions and 0 deletions

View File

@@ -547,5 +547,13 @@ int wxCheckListBox::DoHitTestItem(wxCoord x, wxCoord y) const
return nItem >= m_noItems ? wxNOT_FOUND : nItem;
}
wxSize wxCheckListBox::DoGetBestSize() const
{
wxSize best = wxListBox::DoGetBestSize();
best.x += wxOwnerDrawn::GetDefaultMarginWidth(); // add room for the checkbox
return best;
}
#endif