RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.CreateWnd Method

Creates the window used by the tree view component.

Pascal
procedure CreateWnd; override;
C++
virtual __fastcall CreateWnd();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!