NativeWindow.FromHandle(IntPtr) Méthode

Définition

Récupère la fenêtre associée au handle spécifié.

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

Paramètres

handle
IntPtr

nativeint

Poignée d’une fenêtre.

Retours

Associé NativeWindow au handle spécifié. Cette méthode retourne null lorsque le handle n’a pas de fenêtre associée.

Remarques

Si vous recevez un handle d’une autre méthode, utilisez cette méthode pour récupérer la fenêtre associée au handle. Le handle doit déjà être détenu par un autre NativeWindow dans le processus actuel ; sinon, null il est retourné.

S’applique à

Voir aussi