Help Center

GetInfofunction

Gets information for a specified menu.

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 GetInfo (BYVAL hMenu AS HMENU, BYVAL pmi AS MENUINFO PTR) AS BOOLEAN
FUNCTION GetInfo (BYVAL hMenu AS HMENU, BYREF mi AS MENUINFO) AS BOOLEAN

Parameters

NameDescription
hWinA handle to the window or dialog whose menu handle is to be retrieved.
pmiA pointer to a MENUINFO structure containing information for the menu.
miA pointer to a MENUINFO structure containing information for the menu.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

The third overloaded function returns a MENUINFO directly.

Description

Gets information for a specified menu.

Reference

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