implement GetSizeAvailableForScrollTarget

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2008-10-09 19:18:28 +00:00
parent e9a7fde568
commit 2571a33fd3
2 changed files with 10 additions and 0 deletions

View File

@@ -4151,6 +4151,15 @@ WXLRESULT wxDataViewCtrl::MSWWindowProc(WXUINT nMsg,
}
#endif
wxSize wxDataViewCtrl::GetSizeAvailableForScrollTarget(const wxSize& size)
{
wxSize newsize = size;
if (!HasFlag(wxDV_NO_HEADER))
newsize.y -= m_headerArea->GetSize().y;
return newsize;
}
void wxDataViewCtrl::OnSize( wxSizeEvent &WXUNUSED(event) )
{
// We need to override OnSize so that our scrolled