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

# TCustomMemo.FinalizeWnd

Maintains resources in the class instance when the handle for the control is destroyed or re-created.

## Declaration

Source position: stdctrls.pp line 915

`protected procedure TCustomMemo.FinalizeWnd; override;`

## Description

FinalizeWnd ensures that existing string values assigned to the Lines property are captured, stored locally, and freed in the widget class instance before the handle is destroyed or re-created for the control. It ensures that scroll bar information stored in either HorzScrollBar or VertScrollBar is invalidated when the handle is finalized.

FinalizeWnd calls the inherited method prior to exit.

## See also

TCustomMemo.Lines |  | Contains the individual lines of text in the multi-line edit control.
TCustomMemo.HorzScrollBar |  | The horizontal scrollbar for the control.
TCustomMemo.VertScrollBar |  | The vertical scrollbar for the control.
TWinControl.FinalizeWnd |  | Prepares to remove the window (called before the Handle is destroyed).