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

# TCustomMemo.InitializeWnd

Copies existing string values from the widgetset class.

## Declaration

Source position: stdctrls.pp line 914

`protected procedure TCustomMemo.InitializeWnd; override;`

## Description

InitializeWnd is an overridden method in TCustomMemo. InitializeWnd ensures that property values from widgetset class are stored in the current class instance when handle for the control is created (or re-created). InitializeWnd is called after the handle for the control was created, but before the handle for child controls is created.

InitializeWnd ensures that string values in the widgetset class (if any) are copied to a new TStrings instance and assigned to the Lines property. The previous TStrings instance in Lines is freed.

InitializeWnd calls the inherited method prior to exit.

## See also

TCustomMemo.Lines |  | Contains the individual lines of text in the multi-line edit control.
TCustomEdit.InitializeWnd |  | Initializes the window handle for the control.
TStrings