Partager via


CMFCPopupMenu::CheckArea

Determines the location of a point relative to the pop-up menu.

MENUAREA_TYPE CheckArea(
   const CPoint& ptScreen 
) const;

Parameters

  • [in] ptScreen
    A point, in screen coordinates.

Return Value

A MENUAREA_TYPE parameter that indicates where the point is relative to the pop-up menu.

Remarks

A MENUAREA_TYPE parameter can have any one of the following values.

  • OUTSIDE - ptScreen is outside the pop-up menu.

  • LOGO - ptScreen is over a logo area.

  • TEAROFF_CAPTION - ptScreen is over the tear-off caption.

  • SHADOW_BOTTOM - ptScreen is over the bottom shadow of the pop-up menu.

  • SHADOW_RIGHT - ptScreen is over the right shadow of the pop-up menu.

  • MENU - ptScreen is over a command.

Requirements

Header: afxpopupmenu.h

See Also

Reference

CMFCPopupMenu Class

Hierarchy Chart