Partager via


CContextMenuManager::GetMenuById

Returns a handle to the menu associated with a given resource ID.

HMENU GetMenuById(
   UINT nMenuResId 
) const;

Parameters

  • [in] nMenuResId
    The resource ID for the menu.

Return Value

A handle to the associated menu or NULL if the menu is not found.

Requirements

Header: afxcontextmenumanager.h

See Also

Reference

CContextMenuManager Class

Hierarchy Chart