Screen.fromHwnd

Overview | Methods | Fields | This Package | All Packages

Screen.fromHwnd

Retrieves a Screen object for the monitor that contains the largest portion of the specified window.

Syntax

public static Screen fromHwnd( int hwnd )

Parameters

hwnd

The window handle for which to retrieve the monitor.

Return Value

Returns a Screen object for the monitor that contains the largest region of the specified window. If no monitor contains any portion of the specified window, then the monitor closest to the window is returned.

See Also   fromControl, fromPoint, fromRectangle