Attaching menu to a top-level form
Shortcut Menu Class
BOOL DestroyMenu(
HMENU hMenu // handle to menu
);
DECLARE INTEGER DestroyMenu IN user32;
INTEGER hMenu
hMenu [in] Handle to the menu to be destroyed.
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.
DestroyMenu is recursive, that is, it will destroy the menu and all its submenus.