X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/674ac8b919eecbc201b5f23b470a567cd0565e10..737255678cb96a8296348fb62603afdd28133ec5:/src/msw/control.cpp diff --git a/src/msw/control.cpp b/src/msw/control.cpp index ea72d9e9f3..89ddd5c546 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -204,10 +204,9 @@ bool wxControl::MSWOnNotify(int idCtrl, void wxControl::OnEraseBackground(wxEraseEvent& event) { - // In general, you don't want to erase the background of a control, - // or you'll get a flicker. - // TODO: move this 'null' function into each control that - // might flicker. + // notice that this 'dumb' implementation may cause flicker for some of the + // controls in which case they should intercept wxEraseEvent and process it + // themselves somehow RECT rect; ::GetClientRect(GetHwnd(), &rect);