]> git.saurik.com Git - wxWidgets.git/commitdiff
implement GetSizeAvailableForScrollTarget
authorRobert Roebling <robert@roebling.de>
Thu, 9 Oct 2008 19:18:28 +0000 (19:18 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 9 Oct 2008 19:18:28 +0000 (19:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/dataview.h
src/generic/datavgen.cpp

index f3c6057cbae39742a085d0e770bfbca8d784ac90..8296c5eef848ddb3fb72482717efdaa06daf5415 100644 (file)
@@ -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
index 44eef8c70e70d2412640f42d15b1d8cfa5f275e0..23bc5ec610a4dd13bc693eae6953f3951cd90ec2 100644 (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