RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Classes.DeallocateHWnd Function

Frees a window that was created using AllocateHWnd.

Pascal
procedure DeallocateHWnd(Wnd: HWND);
C++
DeallocateHWnd(HWND Wnd);

Classes

Call DeallocateHWnd to free a window that was created using the AllocateHWnd function. Windows must be freed to release the system resources that they consume.  

The Wnd parameter is the window handle of the window to be freed. This value is the same as the handle returned by the call to AllocateHWnd.

Warning: Do not use DeallocateHWnd on the handle of a windowed control. Windowed controls free their handles using the protected DestroyHandle method, which ensures that the control is left in a consistent state.
 

 

AllocateHWnd 

TWinControl

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