Use wxWindow::Refresh() instead of artificial wxPaintEvent in the test.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 5 May 2013 00:00:01 +0000 (00:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 5 May 2013 00:00:01 +0000 (00:00 +0000)
commit233666915e284252960bb7618fcb810aa27b0cc6
tree50d0f7acaa222c5e8095d2c27c5788f9999c6150
parenta7c0de8a98250e908329ece9e14742b9d688d1e4
Use wxWindow::Refresh() instead of artificial wxPaintEvent in the test.

This fixes memory leaks under wxMSW: as the test code didn't (and couldn't)
call wxPaintDCImpl::EndPaint(), there was a leak for each wxPaintEvent
generated in it since the changes to wxDC caching in r72938.

It's also preferable because it uses public API instead of feeding events to
the window which is not documented to work.

Unfortunately even using Refresh() still doesn't allow the test to work under
wxOSX.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
tests/events/propagation.cpp