RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleControl.DestroyWindowHandle Method

Destroys the window created in the CreateWindowHandle method.

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

Call DestroyWindowHandle to dispose of the window for the control. 

TWinControl's Destroy method calls DestroyWindowHandle to destroy any window associated with a windowed control before destroying the object. The DestroyWnd method also calls DestroyWindowHandle. 

 

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