[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Forms' (#lcl)

# THintWindow.UpdateRegion

Updates the Window Region fir the hint window.

## Declaration

Source position: forms.pp line 1001

`protected procedure THintWindow.UpdateRegion; virtual;`

## Description

UpdateRegion calls the SetWindowRgn routine to set the window region for the hint window. The window region contains the area where the system can perform drawing operations; no area outside of the window region can be updated.

Remark: | SetWindowRgn requires access to the Handle for the hint window; no actions are performed in the method when HandleAllocated returns False.

When UseBGThemes is enabled, ThemeServices are used to get the theme element details needed for the client rectangle in the hint window.

## See also

THintWindow.UseBGThemes |  | Indicates if a background from theme services is used when drawing the hint window.
THintWindow.UseBGThemes |  | Indicates if a background from theme services is used when drawing the hint window.