BOOL DestroyIcon(hIcon)
This function destroys an icon that was previously 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.
Parameter | Type/Description | |
hIcon | HICON Identifies the icon to be destroyed. The icon must not be in current use. |
The return value is nonzero if the function was successful. It is zero if the function failed.