Help Center

Attachfunction

Attaches a menu to a window or dialog.

Windowsfunctiondoc-orphan
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 Attach (BYVAL hwnd AS HWND, BYVAL hMenu AS HMENU) AS BOOLEAN

Return value

Returns TRUE if the function succeeds; FALSE otherwise.

Description

Attaches a menu to a window or dialog.

Remarks

The Windows API function SetMenu performs the same action.

Reference

  • Documented in Windows/WIndows Controls/CMenu Class.md
  • Topic: About Menus