Vcl.ComCtrls.TCustomTreeView.CreateWnd

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CreateWnd; override;

C++

virtual void __fastcall CreateWnd();

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomTreeView

Description

Creates the window used by the tree view component.

CreateWnd is called automatically when the tree view is first created or when the window must be destroyed and recreated to reflect property changes.

CreateWnd first calls the CreateParams method to initialize the window-creation parameters, then calls CreateWindowHandle to create the window for the control. If the tree view's window was temporarily destroyed and recreated, CreateWnd reads various property settings from an in-memory cache where they were stored while there was no window. CreateWnd then sends a series of Windows messages to the newly-created tree view control to initialize its property settings.

See Also