GetSubMenu

  HMENU GetSubMenu(hmenu, nPos)    
  HMENU hmenu; /* handle of menu */
  int nPos; /* menu-item position */

The GetSubMenu function retrieves the handle of the pop-up menu invoked by the specified menu item.

Parameters

hmenu

Identifies the menu.

nPos

Specifies the zero-based relative position in the given menu of an item that invokes a pop-up menu.

Return Value

The return value is the handle of the pop-up menu invoked by the menu item. It is NULL if the menu item does not invoke a pop-up menu.

See Also

CreatePopupMenu, GetMenu