Is it possible to somehow get a modification region (updated region of the specified window) in the descendant of TWinControl in WM_PAINT processing?
I tried to call the GetUpdateRect function, but in TWinControl.PaintHandler by this moment BeginPaint is already called and the modification area is being validated, therefore GetUpdateRect returns an empty rectangle. And the type variable TPaintStruct is local for TWinControl.PaintHandler and there is no access to it.