implement GetSizeAvailableForScrollTarget
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -490,6 +490,7 @@ private:
|
||||
|
||||
private:
|
||||
void OnSize( wxSizeEvent &event );
|
||||
virtual wxSize GetSizeAvailableForScrollTarget(const wxSize& size);
|
||||
|
||||
// we need to return a special WM_GETDLGCODE value to process just the
|
||||
// arrows but let the other navigation characters through
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user