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

TCustomForm.CreateWnd

Creates the handle for the widgetset class and updates it Menu and Icons.

Declaration

Source position: forms.pp line 645

protected procedure TCustomForm.CreateWnd; override;

Description

CreateWnd is an overridden method in TCustomForm used to create (or re-create) the Handle for the widgetset class. It sets the initial values for FormState, and calls the inherited method to handle auto-sizing and scroll bars.

CreateWnd ensures that a handle is allocated for the Menu and the Handle for the form is used as its WindowHandle. The CM_ICONCHANGED control message is performed to (re-)create handles for menu glyphs, and to post the changes to the widgetset class.

See also

TScrollingWinControl.CreateWnd

  

Creates the window handle for the control.

TWinControl.CreateWnd

  

Creates the interface object (widget) and assigns the value in Handle.


Version 3.2 Generated 2024-02-25 Home