Screen.FromHandle(IntPtr) Méthode

Définition

Récupère un Screen pour l'affichage qui contient la plus grande partie de l'objet référencé par le handle spécifié.

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

Paramètres

hwnd
IntPtr

nativeint

Handle de fenêtre à partir duquel Screen doit être récupéré.

Retours

Screen

Screen pour l'affichage qui contient la plus grande partie de l'objet. Dans plusieurs environnements d'affichage où aucun affichage ne contient une partie de la fenêtre spécifiée, l'affichage le plus proche de l'objet est retourné.

S’applique à