PopUpMenu

PopUpHitTest

Identify the part of an open pop-up menu at a screen position

Syntax

Signature
int         PopUpHitTest( const PopUpMenu *popUp, int row, int col );

Arguments

popUp the pop-up menu.

row, col the screen row and column to test.

Return value

The one-based item position, HTSEPARATOR on a separator, a frame constant on an edge or corner, or HTNOWHERE outside the menu, on a closed menu or if the object is NULL.

Description

The frame results are `HTTOPLEFT`, `HTTOP`, `HTTOPRIGHT`, `HTRIGHT`, `HTBOTTOMRIGHT`, `HTBOTTOM`, `HTBOTTOMLEFT` and `HTLEFT`. A disabled item still produces its position. Use `PopUpSelect()` to check whether that position can be selected.

See also