次の方法で共有


Screen.FromHandle メソッド

指定したハンドルによって参照されているオブジェクトの最大領域を保持するディスプレイを表す Screen を取得します。

Public Shared Function FromHandle( _
   ByVal hwnd As IntPtr _) As Screen
[C#]
public static Screen FromHandle(IntPtrhwnd);
[C++]
public: static Screen* FromHandle(IntPtrhwnd);
[JScript]
public static function FromHandle(
   hwnd : IntPtr) : Screen;

パラメータ

  • hwnd
    Screen の取得条件となるウィンドウ ハンドル。

戻り値

オブジェクトの最大領域を保持するディスプレイの Screen 。指定したウィンドウのどの部分を含むディスプレイもない複数ディスプレイ環境では、オブジェクトに最も近いディスプレイが返されます。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

Screen クラス | Screen メンバ | System.Windows.Forms 名前空間