RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.DestroyWnd Method

Destroys the control's window.

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

DestroyWnd is called when the tree view needs to replace its window. For example, changing properties that are implemented by window parameter settings require the tree view to be destroyed and then recreated using the CreateWnd method.  

Before the window is destroyed, DestroyWnd saves information about the tree view's items in memory, frees any device contexts, and finally calls DestroyWindowHandle. When the window is recreated, the stored items are added to the new window. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!