Sign in Join
FPDoc Onlineexperiment

TWidgetSet.MonitorFromPoint function

Member of TWidgetSetpublicIn unit InterfaceBase

Finds a monitor from the screen coordinates.

Declaration

pascal
function MonitorFromPoint(ptScreenCoords: TPoint; dwFlags: DWord)
: HMONITOR; virtual

Arguments

ptScreenCoords

The point in screen coordinates.

dwFlags

How coordinates outside any monitor are handled, see MonitorFromPoint.

Function result

Gets the monitor handle, or a value derived from Flags.

Description

The return value contains the handle for the monitor, or a value determined using Flags when a monitor does not apply.

MONITOR_DEFAULTTONEAREST
The nearest monitor.
MONITOR_DEFAULTTONULL
Zero.
MONITOR_DEFAULTTOPRIMARY
The primary monitor.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.