If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
But the OnPaint code is still called from somewhere else. This is in a class inheriting from wxScrolled<wxPanel> after an OnMouseWheel event, but I have some other class with the same inheritance where no OnPaint is triggered, so I guess this cannot be the cause.
Can I somehow find the cause for the OnPaint event?
thanx, that´s what i thought, but like i wrote i have another class with the same inheritance and it does not trigger a paint event. so i thought this would exclude some internal wxScrolled<wxPanel> reason, but maybe both trigger the event and one of them vetos it somewhere? would be even more difficult to find then.
On MSW, unless you disabled scrolling by EnableScrolling(false, false), scrolling should trigger WM_PAINT. It uses ::ScrollWindowEx() to scroll part of the window, which then asks the window to pain the unscrolled area.