Help Center

AfxDestroyMenufunction

Destroys a menu.

Windowsfunctiondocumented

Syntax

FUNCTION AfxDestroyMenu (BYVAL hMenu AS HMENU) AS BOOLEAN
FUNCTION AfxDestroyMenu (BYVAL hwnd AS HWND) AS BOOLEAN

Parameters

NameDescription
hMenuHandle to the menu to be destroyed.
hwndHandle to the window or dialog that owns the menu.

Return value

A boolean true (-1) pr false (0).

Description

Destroys the specified menu and frees any memory that the menu occupies. The second overloaded function destroys the menu attached to a window or dialog.

Reference

  • Defined in AfxNova/AfxMenu.inc:38
  • Documented in Windows/Windows GUI/Menu Procedures.md
  • Topic: About Menus