[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 1089

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.