###User Defined Function###
_GUICtrlMenu_MenuItemFromPoint

###Description###
Determines which menu item is at the specified location.

###Syntax###
#include <GuiMenu.au3>
_GUICtrlMenu_MenuItemFromPoint ( $hWnd, $hMenu [, $iX = -1 [, $iY = -1]] )


###Parameters###
@@ParamTable@@
$hWnd
	Handle to the window containing the menu. If this value is 0 and $hMenu represents a popup menu, the function will find the menu window.
$hMenu
	Handle to the menu containing the menu items to hit test
$iX
	[optional] X position to test. If -1, the current mouse X position will be used.
$iY
	[optional] Y position to test. If -1, the current mouse Y position will be used.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	the 0-based position of the menu item at the specified location.
Failure:	-1.
@@End@@


###Remarks###
If $hMenu specifies a menu bar the coordinates are window coordinates. Otherwise, they are client coordinates.


###Related###


###See Also###
@@MsdnLink@@ MenuItemFromPoint


###Example###
@@IncludeExample@@
