RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControlCanvas.Destroy Destructor

Destroys an instance of TControlCanvas.

Pascal
destructor Destroy; override;
C++
virtual __fastcall ~TControlCanvas();

Do not call Destroy directly in an application. The controls that use a TControlCanvas object destroy it by calling Free from their own destructors. Free verifies that the TControlCanvas object is not nil and only then calls Destroy. 

Destroy releases the handle to a device context (HDC) the control canvas uses before freeing the memory associated with the object. 

 

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