RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Classes.AllocateHWnd Function

DeallocateHWnd is used to destroy a hidden window created using AllocateHWnd.

Pascal
function AllocateHWnd(Method: TWndMethod): HWND;
C++
HWND AllocateHWnd(TWndMethod Method);

Classes

HWnd means a 'Handle on a window'. For Windowless applications, you can call AllocateHWnd to allocate such a handle. This handle is used to allow a Windowless application to proces Windows messages.  

You call DeallocateHWnd to clean up resources after calling AllocateHWnd. You pass the HWnd that was allocated to AllocateHWnd. 

 

AllocateHWnd 

TWndMethod

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