DestroyMenu

Syntax

BOOL DestroyMenu(hMenu)

This function destroys the menu specified by the hMenu parameter and frees any memory that the menu occupied.

Parameter Type/Description  
hMenu HMENU Identifies the menu to be destroyed.  

Return Value

The return value specifies whether or not the specified menu is destroyed. It is nonzero if the menu is destroyed. Otherwise, it is zero.