Compartilhar via


MonitorFromPoint (Windows CE 5.0)

Send Feedback

This function retrieves a handle to the screen that contains a specified point.

HMONITOR MonitorFromPoint(POINT pt,DWORD dwFlags);

Parameters

  • pt
    [in] POINT structure that specifies the coordinates of the point of interest in virtual screen coordinates.
  • dwFlags
    [in] DWORD that determines the return value of the function when none of the screens contain the point. The following table shows a list of possible return values.
    Value Description
    MONITOR_DEFAULTTONEAREST The return value is a handle to the screen that is nearest to the point.
    MONITOR_DEFAULTTONULL The return value is NULL.
    MONITOR_DEFAULTTOPRIMARY The return value is a handle to the primary screen.

Return Values

If one of the screens contains the point, the return value is an HMONITOR handle to that screen. If none of the screens contains the point, the return value depends on the value of dwFlags.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Windows.h.
Link Library: Coredll.lib.

See Also

MonitorFromRect | MonitorFromWindow | POINT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.