Palette.destroyHandle

Overview | Methods | This Package | All Packages

Palette.destroyHandle

Called when this object is going to destroy its Win32 handle.

Syntax

protected void destroyHandle()

Remarks

The Palette class' implementation of the destroyHandle method frees only handles owned by the Palette object. If you have created this object based on a previously allocated handle, this method does nothing; you are responsible for freeing the handle. Additionally, if you have used the Palette object's copyHandle method to duplicate its handle, a call to destroyHandle does not free this handle; you are responsible for freeing it.

However, you can override this method in your Palette-derived class to define your own custom semantics for handle destruction.