Vcl.Forms.TScreen.MonitorFromWindow

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function MonitorFromWindow(const Handle: THandle;
MonitorDefault: TMonitorDefaultTo = mdNearest): TMonitor;

C++

TMonitor* __fastcall MonitorFromWindow(const NativeUInt Handle, TMonitorDefaultTo MonitorDefault = (TMonitorDefaultTo)(0x0));

Properties

Type Visibility Source Unit Parent
function public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TScreen

Description

Returns the monitor where a specified window is located.

Call MonitorFromWindow determine the monitor that displays a specified window.

Handle is the window handle for the window to be located.

MonitorDefault indicates how to select a monitor when the window does not fall entirely on a single monitor.

See Also