Microsoft SDK for Java

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

© 1999 Microsoft Corporation. All rights reserved. Terms of use.