X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de168da1ed50ba602da4868a82de1f27de10c12b..438959cca892a7651634cc3a7aad4819ac49b23c:/include/wx/scrolwin.h?ds=sidebyside diff --git a/include/wx/scrolwin.h b/include/wx/scrolwin.h index adc7e5a1fc..73d93aaf61 100644 --- a/include/wx/scrolwin.h +++ b/include/wx/scrolwin.h @@ -399,13 +399,19 @@ public: #endif } +#ifdef __WXMSW__ // we need to return a special WM_GETDLGCODE value to process just the // arrows but let the other navigation characters through -#ifdef __WXMSW__ virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) { return FilterMSWWindowProc(nMsg, T::MSWWindowProc(nMsg, wParam, lParam)); } + + // Take into account the scroll origin. + virtual void MSWAdjustBrushOrg(int* xOrg, int* yOrg) const + { + CalcUnscrolledPosition(*xOrg, *yOrg, xOrg, yOrg); + } #endif // __WXMSW__ WX_FORWARD_TO_SCROLL_HELPER()