support wxListCtrl::GetViewRect() in report view too; test it in the sample (#9484)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-06-29 00:12:12 +00:00
parent 24b67be4c6
commit 929b79014a
5 changed files with 46 additions and 14 deletions

View File

@@ -4110,8 +4110,7 @@ int wxListMainWindow::GetSelectedItemCount() const
wxRect wxListMainWindow::GetViewRect() const
{
wxASSERT_MSG( !HasFlag(wxLC_REPORT | wxLC_LIST),
_T("wxListCtrl::GetViewRect() only works in icon mode") );
wxASSERT_MSG( !HasFlag(wxLC_LIST), "not implemented for list view" );
// we need to find the longest/tallest label
wxCoord xMax = 0, yMax = 0;