DestroyIcon

  BOOL DestroyIcon(hicon)    
  HICON hicon; /* handle of icon to destroy */

This function destroys an icon that was created by the CreateIcon function and frees any memory that the icon occupied. It should not be used to destroy any icon that was not created with the CreateIcon function.

Parameters

hicon

Identifies the icon to be destroyed. The icon must not be in current use.

Return Value

The return value is TRUE if the function was successful. Otherwise, it is FALSE.

See Also

CreateIcon