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

# TCustomPage.DestroyHandle

Updates the Flags property when the Handle for the control is freed.

## Declaration

Source position: comctrls.pp line 258

`protected procedure TCustomPage.DestroyHandle; override;`

## Description

DestroyHandle is an overridden method used to update the control when its Handle is freed in the widgetset class. DestroyHandle calls the inherited method on entry, and updates the Flags property to exclude the value pfAdded.

## See also

TCustomPage.Flags |  | Contains flag values that represent the status or state for the handle in the custom page control.
TPageFlags |  | Set type used to store TPageFlag enumeration values.
TPageFlag |  | Contains values which can be assigned to the Flags property in TCustomPage.
TWinControl.Handle |  | A reference handle to the widgetset class instance associated with this control.
TWinControl.DestroyHandle |  | Destroys the handle for the control and all child controls.