[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TScreen.MonitorFromWindow

Find the monitor containing (most of) the given window.

Declaration

Source position: forms.pp line 1137

public function TScreen.MonitorFromWindow(

  const Handle: THandle;

  MonitorDefault: TMonitorDefaultTo = mdNearest

):TMonitor;

Arguments

Handle

  

The window handle to use.

MonitorDefault

  

What to return when no monitor was found.

Function result

The monitor found.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.