X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56873923f39af96aac6bfc5776d2637b8c4623ca..e215c9959cfae9db319cbca376553301dfa17cf1:/src/common/headerctrlcmn.cpp diff --git a/src/common/headerctrlcmn.cpp b/src/common/headerctrlcmn.cpp index 596bcf9abe..80ada16bc8 100644 --- a/src/common/headerctrlcmn.cpp +++ b/src/common/headerctrlcmn.cpp @@ -32,7 +32,7 @@ // wxHeaderCtrlBase implementation // ============================================================================ -WXDLLIMPEXP_DATA_CORE(const char) wxHeaderCtrlNameStr[] = "wxHeaderCtrl"; +extern WXDLLIMPEXP_DATA_CORE(const char) wxHeaderCtrlNameStr[] = "wxHeaderCtrl"; void wxHeaderCtrlBase::DeleteAllColumns() { @@ -42,3 +42,18 @@ void wxHeaderCtrlBase::DeleteAllColumns() } +void wxHeaderCtrlBase::ScrollWindow(int dx, + int WXUNUSED_UNLESS_DEBUG(dy), + const wxRect * WXUNUSED_UNLESS_DEBUG(rect)) + +{ + // this doesn't make sense at all + wxASSERT_MSG( !dy, "header window can't be scrolled vertically" ); + + // this would actually be nice to support for "frozen" headers but it isn't + // supported currently + wxASSERT_MSG( !rect, "header window can't be scrolled partially" ); + + DoScrollHorz(dx); +} +