DestroyIcon

3.0

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

The DestroyIcon function destroys an icon that was created by the CreateIcon or LoadIcon function and frees any memory that the icon occupied.

Parameters

hicon

Identifies the icon to be destroyed.

Return Value

The return value is nonzero if the function is successful. Otherwise, it is zero.

See Also

CreateCursor, CreateIcon, DestroyCursor, LoadIcon