fixed GetItemSpacing() inconsistency by deprecating the old function and adding a new, easier to use, overload
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1110,9 +1110,13 @@ int wxListCtrl::GetItemCount() const
|
||||
return m_count;
|
||||
}
|
||||
|
||||
// Retrieves the spacing between icons in pixels.
|
||||
// If small is TRUE, gets the spacing for the small icon
|
||||
// view, otherwise the large icon view.
|
||||
wxSize wxListCtrl::GetItemSpacing() const
|
||||
{
|
||||
const int spacing = GetItemSpacing(HasFlag(wxLC_SMALL_ICON));
|
||||
|
||||
return wxSize(LOWORD(spacing), HIWORD(spacing));
|
||||
}
|
||||
|
||||
int wxListCtrl::GetItemSpacing(bool isSmall) const
|
||||
{
|
||||
return ListView_GetItemSpacing(GetHwnd(), (BOOL) isSmall);
|
||||
|
Reference in New Issue
Block a user