RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControlCanvas.FreeHandle Method

Releases the handle to a device context (HDC) used by the control canvas object.

Pascal
procedure FreeHandle;
C++
__fastcall FreeHandle();

Call FreeHandle to free the HDC used by the control canvas. FreeHandle sets the Handle property to NULL. After calling FreeHandle, an HDC will be reacquired if any of the drawing methods are called.

Note: Setting the Handle property to NULL does not free the HDC. Set the Handle property to NULL rather than call FreeHandle if the HDC is release by the application.
 

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