Vcl.OleCtrls.TOleControl.DestroyWindowHandle
Delphi
procedure DestroyWindowHandle; override;
C++
virtual void __fastcall DestroyWindowHandle(void);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
protected | Vcl.OleCtrls.pas Vcl.OleCtrls.hpp |
Vcl.OleCtrls | TOleControl |
Description
Destroys the window created in the CreateWindowHandle method. {{#multireplace:Vcl.OleCtrls.TOleControl.DestroyWindowHandle|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Vcl.Controls.TWinControl.DestroyWindowHandle|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Vcl.Controls.TWinControl.DestroyWindowHandle|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
Destroys the window created in the CreateWindowHandle method.
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.