Overview | Methods | This Package | All Packages
Called when this object is going to destroy its Win32 handle.
Syntax
protected void destroyHandle( int handle )
Parameters
handle
The Win32 handle to the bitmap on which this object is based.
Remarks
The Icon class's implementation of destroyHandle frees only handles owned by the Icon object. If you have used the object to retrieve a handle to this icon (using the copyHandle method), or if you have created a Icon object based on a previously allocated handle, this handle is not freed by the object's call to destroyHandle; you are responsible for freeing these handles.
However, you can override this method in your Icon-derived class to define your own custom semantics for handle creation and destruction.