2.1.25.30 GetSubMenu


Description

This function retrieves a handle to the drop-down menu or submenu activated by the specified menu item.

Syntax

HMENU GetSubMenu( HMENU hMenu, int nPos )

Parameters

hMenu
[input] Handle to the menu.
nPos
[input] Specifies the zero-based relative position in the specified menu of an item that activates a drop-down menu or submenu.

Return

If the function succeeds, the return value is a handle to the drop-down menu or submenu activated by the menu item. If the menu item does not activate a drop-down menu or submenu, the return value is NULL.

Examples

Remark

See Also

SetMenu, GetMenu, IsMenu

Header to Include

origin.h

Reference