編集

次の方法で共有


Screen.FromHandle(IntPtr) Method

Definition

Retrieves a Screen for the display that contains the largest portion of the object referred to by the specified handle.

public:
 static System::Windows::Forms::Screen ^ FromHandle(IntPtr hwnd);
public static System.Windows.Forms.Screen FromHandle (IntPtr hwnd);
static member FromHandle : nativeint -> System.Windows.Forms.Screen
Public Shared Function FromHandle (hwnd As IntPtr) As Screen

Parameters

hwnd
IntPtr

nativeint

The window handle for which to retrieve the Screen.

Returns

A Screen for the display that contains the largest region of the object. In multiple display environments where no display contains any portion of the specified window, the display closest to the object is returned.

Applies to