AfxDestroyMenufunction
Destroys a menu.
Syntax
FUNCTION AfxDestroyMenu (BYVAL hMenu AS HMENU) AS BOOLEAN
FUNCTION AfxDestroyMenu (BYVAL hwnd AS HWND) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hMenu | Handle to the menu to be destroyed. | |
hwnd | Handle 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