IsMenu function (winuser.h)

Determines whether a handle is a menu handle.

Syntax

BOOL IsMenu(
  [in] HMENU hMenu
);

Parameters

[in] hMenu

Type: HMENU

A handle to be tested.

Return value

Type: BOOL

If the handle is a menu handle, the return value is nonzero.

If the handle is not a menu handle, the return value is zero.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll
API set ext-ms-win-ntuser-menu-l1-1-1 (introduced in Windows 8.1)

See also

Menus