2.1.25.8 DestroyIcon


Description

This function destroys an icon and frees any memory the icon occupied.

Syntax

BOOL DestroyIcon( HICON hIcon )

Parameters

hIcon
[input]Handle to the icon to be destroyed. The icon must not be in use.

Return

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Examples

Remark

This function may be called on the icon handle returned from LoadImage or LoadIcon. The icon handle is invalid after calling DestroyIcon.

See Also

LoadIcon

Header to Include

origin.h

Reference