Overview | Methods | Fields | 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 brush (HBRUSH) on which this object is based.
Remarks
The Brush class' implementation of destroyHandle frees only handles owned by the Brush object. If you have used the object to retrieve a handle to this brush (using the copyHandle method), or if you have created a Brush 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 Brush-derived class to define your own custom semantics for handle creation and destruction.