Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 980 Bytes

DestroyMenu.md

File metadata and controls

48 lines (32 loc) · 980 Bytes

Home

Function name : DestroyMenu

Group: Menu - Library: user32


The DestroyMenu function destroys the specified menu and frees any memory that the menu occupies.


Code examples:

Attaching menu to a top-level form
Shortcut Menu Class

Declaration:

BOOL DestroyMenu(
  HMENU hMenu  // handle to menu
);  

FoxPro declaration:

DECLARE INTEGER DestroyMenu IN user32;
	INTEGER hMenu  

Parameters:

hMenu [in] Handle to the menu to be destroyed.


Return value:

If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.


Comments:

DestroyMenu is recursive, that is, it will destroy the menu and all its submenus.