Destroyfunction
Destroys the specified menu and frees any memory that the menu occupies.
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.
Syntax
FUNCTION Destroy (BYVAL hMenu AS HMENU) AS BOOLEAN
FUNCTION Destroy (BYVAL hWin AS HWND) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hMenu | Handle of the menu. | |
hWin | Handle of the window or dialog that owns the menu. |
Return value
Returns TRUE if the function succeeds; FALSE otherwise.
Description
Destroys the main menu from the window or dialog. The second overloaded method destroys the menu attached to a window or dialog.
Example
CMenu.Destroy(hMenu) CMenu.Destroy(hwnd)
Reference
- Documented in Windows/WIndows Controls/CMenu Class.md
- Topic: About Menus