Simplify wxEVT_PAINT handling in wxScrollHelperBase.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 10 Nov 2012 00:53:17 +0000 (00:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 10 Nov 2012 00:53:17 +0000 (00:53 +0000)
commit4ca30c7d65acbe5db364ab85753e06cc2aad63ae
treeb53ee134190f14c8799df733d32976140e3ca2ba
parentddc8faa9e1f9d7dc99ef11e2294ad33915092024
Simplify wxEVT_PAINT handling in wxScrollHelperBase.

Just always call the virtual OnDraw() if wxEVT_PAINT wasn't handled. This is
much simpler than connecting our own special handler just to set a flag saying
whether the event was processed which was very complicated and didn't work
anyhow for the statically connected wxEVT_PAINT handlers.

See #14757.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/scrolwin.h
src/generic/scrlwing.cpp