TCustomPaintBox32.GetViewportRect

function GetViewportRect: TRect; virtual; // protected

Description

Returns coordinates of the buffered area relative to control's client area. By default, it coincides with the control's client rectangle, that is, the function returns (0, 0, ClientWidth, ClientHeight) rectangle.

Descendants may override this method and return a different rectangle if they have unbuffered areas, like scroll bars.

See Also

Rectangle Types