GetSubMenu function retrieves a handle to the drop-down menu or submenu activated by the specified menu item.
$hsubmenu = GetSubMenu( $hmenu, $npos );
Handle to the menu
Zero-based relative position in the specified menu of an item that activates a drop-down menu or submenu
Menu handle of a submenu